From: Alina Quereilhac Date: Mon, 8 Dec 2014 13:06:50 +0000 (+0100) Subject: X11 validation in plotter X-Git-Tag: nepi-3.2.0~50 X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=commitdiff_plain;h=dee3a0ecda9b4f117ca0f73dde5f41a5035904e1 X11 validation in plotter --- diff --git a/src/nepi/util/plotter.py b/src/nepi/util/plotter.py index ec57ee9f..cda15577 100644 --- a/src/nepi/util/plotter.py +++ b/src/nepi/util/plotter.py @@ -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)