Skip to content

Commit

Permalink
Silence more plotly warnings on import
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 22, 2018
1 parent 6e7c07b commit 41d6b9d
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -32,6 +32,7 @@
# importing plotly throws Python warnings from within the library - filter these out
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=ResourceWarning)
warnings.filterwarnings("ignore", category=ImportWarning)
import plotly # NOQA
hasPlotly = True
except:
Expand Down

0 comments on commit 41d6b9d

Please sign in to comment.