projects
/
FFT-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
FFT_tools: Catch RuntimeErrors when importing matplotlib
[FFT-tools.git]
/
FFT_tools.py
diff --git
a/FFT_tools.py
b/FFT_tools.py
index e85e430272f1c37875b941f312212c943bb38646..e6d058cc178416892a8425bcc05cc67b36d7aeb7 100644
(file)
--- a/
FFT_tools.py
+++ b/
FFT_tools.py
@@
-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