X11 validation in plotter
authorAlina Quereilhac <alina.quereilhac@inria.fr>
Mon, 8 Dec 2014 13:06:50 +0000 (14:06 +0100)
committerAlina Quereilhac <alina.quereilhac@inria.fr>
Mon, 8 Dec 2014 13:06:50 +0000 (14:06 +0100)
src/nepi/util/plotter.py

index ec57ee9..cda1557 100644 (file)
@@ -29,9 +29,9 @@ except ImportError:
 
 try:
     import matplotlib.pyplot as plt
-except ImportError:
-    msg = ("Matplotlib library is not installed, you will not be able "
-        "generate PNG plots.")
+except:
+    msg = ("Matplotlib library is not installed or X11 is not enabled. "
+        "You will not be able generate PNG plots.")
     logger = logging.Logger("Plotter")
     logger.debug(msg)