mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 16:19:21 +00:00
15 lines
294 B
Python
15 lines
294 B
Python
|
# pylint: disable=missing-docstring, invalid-name
|
||
|
|
||
|
MY_DICTIONARY = {"key_one": 1, "key_two": 2, "key_three": 3}
|
||
|
|
||
|
try: # [max-try-statements]
|
||
|
value = MY_DICTIONARY["key_one"]
|
||
|
value += 1
|
||
|
except KeyError:
|
||
|
pass
|
||
|
|
||
|
try:
|
||
|
value = MY_DICTIONARY["key_one"]
|
||
|
except KeyError:
|
||
|
value = 0
|