Also catch RuntimeError when importing pyplot in pid_response.py.
[pypid.git] / examples / pid_repsonse.py
index 33311cb0a7d821104e60f8dd6c589a3973531180..f2216b684609e4d8169629d29e3fb0dba590bc40 100755 (executable)
@@ -25,7 +25,7 @@ from time import sleep
 try:
     from matplotlib import pyplot
     from numpy import loadtxt
-except ImportError, e:
+except (ImportError,RuntimeError), e:
     pyplot = None
     loadtxt = None
     plot_import_error = e