projects
/
pypid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Also catch RuntimeError when importing pyplot in pid_response.py.
[pypid.git]
/
examples
/
pid_repsonse.py
diff --git
a/examples/pid_repsonse.py
b/examples/pid_repsonse.py
index 33311cb0a7d821104e60f8dd6c589a3973531180..f2216b684609e4d8169629d29e3fb0dba590bc40 100755
(executable)
--- a/
examples/pid_repsonse.py
+++ b/
examples/pid_repsonse.py
@@
-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