Removed unused variable and updated url function call

This commit is contained in:
Ellis 2018-09-17 13:21:54 -04:00
parent 80463cf8d8
commit 9c8a299a60

View File

@ -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