mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:35:58 +00:00
21 lines
No EOL
359 B
Python
21 lines
No EOL
359 B
Python
retriable_exceptions = (FileExistsError, FileNotFoundError)
|
|
|
|
try:
|
|
pass
|
|
except (ValueError,):
|
|
pass
|
|
except AttributeError:
|
|
pass
|
|
except (ImportError, TypeError):
|
|
pass
|
|
except (*retriable_exceptions,):
|
|
pass
|
|
except(ValueError,):
|
|
pass
|
|
|
|
list_exceptions = [FileExistsError, FileNotFoundError]
|
|
|
|
try:
|
|
pass
|
|
except (*list_exceptions,):
|
|
pass |