Skip to content
Permalink
Browse files

[processing] Silence warnings thrown from within plotly on import

  • Loading branch information
nyalldawson committed Jun 19, 2018
1 parent 16ac437 commit 8d6ce61a700675387b88754f4c10cf2cde228184
Showing with 6 additions and 2 deletions.
  1. +6 −2 python/plugins/processing/algs/qgis/QgisAlgorithmProvider.py
@@ -26,10 +26,14 @@
__revision__ = '$Format:%H$'

import os
import warnings

try:
import plotly # NOQA
hasPlotly = True
# importing plotly throws Python warnings from within the library - filter these out
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=ResourceWarning)
import plotly # NOQA
hasPlotly = True
except:
hasPlotly = False

0 comments on commit 8d6ce61

Please sign in to comment.
You can’t perform that action at this time.