Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaohong6 committed Aug 17, 2022
1 parent eb20c7c commit a56043e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def is_absolute_directory(d: str) -> Optional[Path]:
p = platform.system()
if p == 'Windows':
match = re.search("[A-Z]:\\\\", d)
if match.start() == 0:
if match and match.start() == 0:
return Path(d)
return None
# posix
Expand Down

0 comments on commit a56043e

Please sign in to comment.