8th day of python challenges 111-117
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
"""Test for duplicate-check."""
|
||||
|
||||
def main():
|
||||
"""The second ValueError should be flagged."""
|
||||
try:
|
||||
raise ValueError('test')
|
||||
except ValueError:
|
||||
return 1
|
||||
except ValueError: # [duplicate-except]
|
||||
return 2
|
||||
except (OSError, TypeError):
|
||||
return 3
|
||||
Reference in New Issue
Block a user