File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def test_can_catch_as_github3_not_found_error(self):
42
42
raise OptionalFileNotFoundError (resp = mock_resp )
43
43
except github3 .exceptions .NotFoundError as e :
44
44
self .assertIsInstance (e , OptionalFileNotFoundError )
45
- except Exception :
45
+ except Exception : # pylint: disable=broad-exception-caught
46
46
self .fail (
47
47
"OptionalFileNotFoundError should be catchable as github3.exceptions.NotFoundError"
48
48
)
@@ -56,7 +56,7 @@ def test_can_catch_specifically(self):
56
56
raise OptionalFileNotFoundError (resp = mock_resp )
57
57
except OptionalFileNotFoundError as e :
58
58
self .assertIsInstance (e , OptionalFileNotFoundError )
59
- except Exception :
59
+ except Exception : # pylint: disable=broad-exception-caught
60
60
self .fail ("OptionalFileNotFoundError should be catchable specifically" )
61
61
62
62
def test_optional_file_not_found_error_properties (self ):
@@ -127,7 +127,7 @@ def test_check_optional_file_can_catch_as_not_found_error(self):
127
127
check_optional_file (mock_repo , "missing.yml" )
128
128
except github3 .exceptions .NotFoundError as e :
129
129
self .assertIsInstance (e , OptionalFileNotFoundError )
130
- except Exception :
130
+ except Exception : # pylint: disable=broad-exception-caught
131
131
self .fail (
132
132
"Should be able to catch OptionalFileNotFoundError as NotFoundError"
133
133
)
You can’t perform that action at this time.
0 commit comments