Skip to content

Commit 2b0b005

Browse files
committed
replaced the PlotlyRequestError with
RequestException as we have changed the response_handler
1 parent 16950fc commit 2b0b005

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plotly/tests/test_core/test_file/test_file.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"""
88
import random
99
import string
10+
import requests
1011
from unittest import TestCase
1112

1213
import plotly.plotly as py
@@ -45,7 +46,7 @@ def test_duplicate_folders(self):
4546
py.file_ops.mkdirs(first_folder)
4647
try:
4748
py.file_ops.mkdirs(first_folder)
48-
except PlotlyRequestError as e:
49-
self.assertTrue(400 <= e.status_code < 500)
49+
except requests.exceptions.RequestException as e:
50+
self.assertTrue(400 <= e.response.status_code < 500)
5051
else:
5152
self.fail('Expected this to fail!')

0 commit comments

Comments
 (0)