FFT_tools: Catch RuntimeErrors when importing matplotlib
[FFT-tools.git] / FFT_tools.py
index e85e430272f1c37875b941f312212c943bb38646..e6d058cc178416892a8425bcc05cc67b36d7aeb7 100644 (file)
@@ -32,7 +32,7 @@ import unittest as _unittest
 import numpy as _numpy
 try:
     import matplotlib.pyplot as _pyplot
-except ImportError as e:
+except (ImportError, RuntimeError) as e:
     _pyplot = None
     _pyplot_import_error = e