We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7887873 commit 1128e00Copy full SHA for 1128e00
plotly/plotly/plotly.py
@@ -1484,6 +1484,15 @@ def get_grid(grid_url, raw=False):
1484
1485
# make request to grab the grid id (fid)
1486
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. Your grid url {} 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 'secret'."
1494
+ )
1495
1496
json_res_meta = json.loads(r_meta.text)
1497
retrieved_grid_id = json_res_meta['fid']
1498
0 commit comments