Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96cf0db

Browse files
committed
wrap exceptions in parens
1 parent fb74755 commit 96cf0db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotly/offline/offline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def plot():
169169

170170
try:
171171
_init_notebook_mode()
172-
except PlotlyOfflineNotFound, ImportError:
172+
except (PlotlyOfflineNotFound, ImportError):
173173
# No big deal. The user just hasn't called download_plotlyjs yet.
174174
# Only bubble up the PlotlyOfflineNotFound error when they attempt
175175
# to create a plot and don't have the source files.

0 commit comments

Comments
 (0)