Skip to content

Commit

Permalink
Add missing path assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed Nov 7, 2017
1 parent 32914cf commit 9f89861
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qutebrowser/utils/urlutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 9f89861

Please sign in to comment.