Skip to content

Commit 430545e

Browse files
committed
corrected bug in plotly scraper
1 parent 90f2370 commit 430545e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: packages/python/plotly/plotly/io/_sg_scraper.py

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ def figure_rst(figure_list, sources_dir):
8888
for figure_path in figure_list
8989
]
9090
images_rst = ""
91+
if not figure_paths:
92+
return images_rst
9193
figure_name = figure_paths[0]
9294
ext = os.path.splitext(figure_name)[1]
9395
figure_path = os.path.join("images", os.path.basename(figure_name))

0 commit comments

Comments
 (0)