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)