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 96cf0db commit 8220663Copy full SHA for 8220663
plotly/offline/offline.py
@@ -169,8 +169,12 @@ def plot():
169
170
try:
171
_init_notebook_mode()
172
-except (PlotlyOfflineNotFound, ImportError):
+except:
173
# No big deal. The user just hasn't called download_plotlyjs yet.
174
# Only bubble up the PlotlyOfflineNotFound error when they attempt
175
# to create a plot and don't have the source files.
176
+ # Since this is run on every `import plotly`, catch all of the errors
177
+ # here - we'll bubble up the errors in `iplot` if the user intends on
178
+ # using offline mode. Otherwise, no sense in erroring on running a
179
+ # a function that the user wasn't even going to run.
180
pass
0 commit comments