You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hit this just trying to recreate a screenshot for the User Guide update:
Unexpected error: <class 'PermissionError'>
Traceback (most recent call last):
File "/Users/csatt/.pyenv/versions/3.11.2/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/init.py", line 1948, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "/Users/csatt/GitHub/IV_Swinger/python3/./IV_Swinger2_gui.py", line 3330, in change_folder
self.populate_tree()
File "/Users/csatt/GitHub/IV_Swinger/python3/./IV_Swinger2_gui.py", line 2977, in populate_tree
if not os.listdir(full_path):
^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 1] Operation not permitted: '/Volumes/MY_USB/.Trashes'
Need to catch that exception and skip that directory.
The text was updated successfully, but these errors were encountered:
Add try/except around call to os.listdir and treat PermissionError the same as an empty directory.
Also fix a couple lint warnings from previous commit.
Hit this just trying to recreate a screenshot for the User Guide update:
Unexpected error: <class 'PermissionError'>
Traceback (most recent call last):
File "/Users/csatt/.pyenv/versions/3.11.2/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/init.py", line 1948, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "/Users/csatt/GitHub/IV_Swinger/python3/./IV_Swinger2_gui.py", line 3330, in change_folder
self.populate_tree()
File "/Users/csatt/GitHub/IV_Swinger/python3/./IV_Swinger2_gui.py", line 2977, in populate_tree
if not os.listdir(full_path):
^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 1] Operation not permitted: '/Volumes/MY_USB/.Trashes'
Need to catch that exception and skip that directory.
The text was updated successfully, but these errors were encountered: