Skip to content

Commit 36469d3

Browse files
committed
put s= in try (no need to compute it for except)
1 parent 080ee0e commit 36469d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotly/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ def embed(file_owner_or_url, file_id=None, width="100%", height=525):
292292
height (default="525") -- same as width but corresp. to the height of the figure
293293
294294
"""
295-
s = get_embed(file_owner_or_url, file_id, width, height)
296295
try:
296+
s = get_embed(file_owner_or_url, file_id, width, height)
297297
# see if we are in the SageMath Cloud
298298
from sage_salvus import html
299299
return html(s, hide=False)

0 commit comments

Comments
 (0)