FFT_tools: Catch RuntimeErrors when importing matplotlib
[FFT-tools.git] / FFT_tools.py
index f70f573372bdc6a719be77d97e701344b9fa4504..e6d058cc178416892a8425bcc05cc67b36d7aeb7 100644 (file)
@@ -32,12 +32,12 @@ 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
 
 
-__version__ = '0.4'
+__version__ = '0.5'
 
 
 LOG = _logging.getLogger('FFT-tools')