Skip to content

Commit 58e40c1

Browse files
committed
change to just a raise for status
1 parent 9b8a0aa commit 58e40c1

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

plotly/plotly/plotly.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,15 +1484,7 @@ def get_grid(grid_url, raw=False):
14841484

14851485
# make request to grab the grid id (fid)
14861486
r_meta = requests.get(meta_get_url, headers=headers)
1487-
1488-
# check if request is ok
1489-
if not r_meta.ok:
1490-
raise exceptions.PlotlyError(
1491-
"Whoops, you got a 404 response. {} may be "
1492-
"pointing to a plot rather than a grid. If it is a grid, make "
1493-
"sure your grid is 'public' and not 'private' or "
1494-
"'secret'.".format(grid_url)
1495-
)
1487+
r_meta.raise_for_status()
14961488

14971489
json_res_meta = json.loads(r_meta.text)
14981490
retrieved_grid_id = json_res_meta['fid']

0 commit comments

Comments
 (0)