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:
Alfred Wingate
2023-11-16 06:15:48 +02:00
parent 6c0b816e73
commit a03b420c75
6 changed files with 7 additions and 7 deletions

View File

@ -112,7 +112,7 @@ def scan_directory_recursive(cp, ver, rev, url, steps, orig_url, options):
fp = helpers.urlopen(url)
except urllib.error.URLError:
return []
except IOError:
except OSError:
return []
if not fp: