mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 07:04:53 +00:00
14 lines
252 B
Python
14 lines
252 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
|