mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 05:39:56 +02:00
Handle access errors scanning directories
Trying to read a directory that is visible but not accessible, or a symlink to a file in a directory that is not accessible will raise a PermissionError. Output these and then continue. If os.scandir() raises an exception then the finally block accesses "scanner" before it is assigned, raising an UnboundLocalError.
This commit is contained in:
parent
fc9c2b4a1d
commit
88a72ea14d
2 changed files with 21 additions and 8 deletions
1
changes/changelog.d/import-eaccess-fix.bugfix
Normal file
1
changes/changelog.d/import-eaccess-fix.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Handle access errors scanning directories when importing files
|
Loading…
Add table
Add a link
Reference in a new issue