Use OSError instead of alias IOError
https://docs.astral.sh/ruff/rules/os-error-alias/ Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
@ -58,7 +58,7 @@ def scan_pkg(pkg, options):
|
||||
fp = helpers.urlopen(url)
|
||||
except urllib.error.URLError:
|
||||
return []
|
||||
except IOError:
|
||||
except OSError:
|
||||
return []
|
||||
|
||||
if not fp:
|
||||
|
Reference in New Issue
Block a user