ruff/crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B013.py

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