blob: 912c713878a947060963b4ebce60dbda7a5970f8 (
plain)
1
2
3
4
5
6
7
8
9
|
"""https://github.com/PyCQA/pylint/issues/2615"""
def main():
"""When evaluating except blocks, assume try statements fail."""
try:
res = 1 / 0
res = 42
except ZeroDivisionError:
print(res) # [used-before-assignment]
print(res)
|