Skip to content

Commit

Permalink
fix #58 path might be None
Browse files Browse the repository at this point in the history
  • Loading branch information
braver committed Jul 28, 2024
1 parent 7d198c1 commit ea0b5b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SideBar.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def is_visible(self, paths=[]):
if len(paths) < 1:
return False
for path in paths:
if not path:
return False
if not os.path.exists(path):
return False
return True
Expand Down

0 comments on commit ea0b5b6

Please sign in to comment.