Skip to content
Snippets Groups Projects
Select Git revision
  • develop default protected
  • master
  • plugins-v3
  • 876-http-signature
  • plugins-v2
  • plugins
  • 0.21.1
  • 0.21
  • 0.21-rc2
  • 0.21-rc1
  • 0.20.1
  • 0.20.0
  • 0.20.0-rc1
  • 0.19.1
  • 0.19.0
  • 0.19.0-rc2
  • 0.19.0-rc1
  • 0.18.3
  • 0.18.2
  • 0.18.1
  • 0.18
  • 0.17
  • 0.16.3
  • 0.16.2
  • 0.16.1
  • 0.16
26 results

import-eaccess-fix.bugfix

Forked from funkwhale / funkwhale
Source project has a limited visibility.
  • Simon Arlott's avatar
    bd153fd5
    Handle access errors scanning directories · bd153fd5
    Simon Arlott authored
    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.
    Handle access errors scanning directories
    Simon Arlott authored
    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.