Add missing path assignment

This commit is contained in:
Florian Bruhin 2017-11-07 11:24:00 +01:00
parent 32914cfaf8
commit 9f898611f3

View File

@ -376,6 +376,8 @@ def get_path_if_valid(pathstr, cwd=None, relative=False, check_exists=False):
try:
if os.path.exists(path):
log.url.debug("URL is a local file")
else:
path = None
except UnicodeEncodeError:
log.url.debug(
"URL contains characters which are not present in the "