Skip to content

Commit

Permalink
fix #2 stat(f) in try/catch block to avoid permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kek committed Mar 2, 2017
1 parent 74bc268 commit d0ac273
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion statusbarextended/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ def refresh(self):
dir_folders += 1
else:
dir_files += 1
dir_filesize += stat(f).st_size
try:
dir_filesize += stat(f).st_size
except Exception as e:
continue

bc = ByteConverter(dir_filesize)
if(pane == self.pane.window.get_panes()[0].id):
Expand Down

0 comments on commit d0ac273

Please sign in to comment.