From d5431877157859812487a5e667063f6ee3ec7d5f Mon Sep 17 00:00:00 2001 From: eric Date: Mon, 12 Oct 2015 10:58:20 -0400 Subject: [PATCH] Removed sys.exit(1) when plot.bgcolour = None. In README.md, it says that setting plot.bgcolour to None will result in a transparent background. However, an assert lead to sys.exit(1) if plot.bgcolour was None. I left the assert and the exception message, but simply removed the sys.exit(1). Now, when plot.bgcolour is None, it throws a warning but continues on to produce the plot with a transparent background. --- rxnlvl/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/rxnlvl/__init__.py b/rxnlvl/__init__.py index e32e638..b71d2b7 100644 --- a/rxnlvl/__init__.py +++ b/rxnlvl/__init__.py @@ -68,7 +68,6 @@ def __init__(self, dimensions, bgcolour=None, vbuf=10.0, hbuf=10.0, ) except AssertionError as e: sys.stderr.write(str(e)) - sys.exit(1) self.qualified = qualified try: assert vbuf > 0 and hbuf > 0,\