Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2b0b005

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎plotly/tests/test_core/test_file/test_file.py

Copy file name to clipboardExpand all lines: plotly/tests/test_core/test_file/test_file.py
+3-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.