Removed unused variable and updated url function call
This commit is contained in:
parent
80463cf8d8
commit
9c8a299a60
@ -70,8 +70,8 @@ def is_whitelisted_host(url):
|
||||
try:
|
||||
if pattern.matches(url):
|
||||
return True
|
||||
except urlmatch.ParseError as p_error:
|
||||
log.misc.exception("Unable to read UrlPattern: " + UrlPattern._pattern)
|
||||
except urlmatch.ParseError:
|
||||
log.misc.exception("Unable to read UrlPattern: " + str(url))
|
||||
return False
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user