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:
|
try:
|
||||||
if pattern.matches(url):
|
if pattern.matches(url):
|
||||||
return True
|
return True
|
||||||
except urlmatch.ParseError as p_error:
|
except urlmatch.ParseError:
|
||||||
log.misc.exception("Unable to read UrlPattern: " + UrlPattern._pattern)
|
log.misc.exception("Unable to read UrlPattern: " + str(url))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user