Skip to content

Commit cf4d831

Browse files
alexandresobolevskitheengineear
authored andcommitted
Change expected exception
1 parent 35f3bcd commit cf4d831

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: plotly/tests/test_core/test_file/test_file.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_duplicate_folders(self):
4949
py.file_ops.mkdirs(first_folder)
5050
try:
5151
py.file_ops.mkdirs(first_folder)
52-
except requests.exceptions.RequestException as e:
53-
self.assertTrue(400 <= e.response.status_code < 500)
52+
except PlotlyRequestError as e:
53+
self.assertTrue(400 <= e.status_code < 500)
5454
else:
5555
self.fail('Expected this to fail!')

0 commit comments

Comments
 (0)