Add missing path assignment
This commit is contained in:
parent
32914cfaf8
commit
9f898611f3
@ -376,6 +376,8 @@ def get_path_if_valid(pathstr, cwd=None, relative=False, check_exists=False):
|
|||||||
try:
|
try:
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
log.url.debug("URL is a local file")
|
log.url.debug("URL is a local file")
|
||||||
|
else:
|
||||||
|
path = None
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
log.url.debug(
|
log.url.debug(
|
||||||
"URL contains characters which are not present in the "
|
"URL contains characters which are not present in the "
|
||||||
|
Loading…
Reference in New Issue
Block a user