diff --git a/beat/core/plotter.py b/beat/core/plotter.py index e7827e88d3449e33de895e7ef1d1cc62d739f83b..38e5f412643d2b6cf636b95a54dd7cbf4fe89b12 100644 --- a/beat/core/plotter.py +++ b/beat/core/plotter.py @@ -44,6 +44,7 @@ Validation for plotters import os import six +import sys from . import dataformat from . import algorithm @@ -227,7 +228,7 @@ class Plotter(object): # At this point, `data' can be a dictionary or ``None`` if data is None: # loads the default declaration for an algorithm self.data, self.errors = prototypes.load("plotter") - assert not self.errors, "\n * %s" % "\n *".join(self.errors) + assert not self.errors, "\n * %s" % "\n *".join(self.errors) # nosec else: # just assign it # this runs basic validation, including JSON loading if required self.data, self.errors = schema.validate("plotter", data) @@ -400,7 +401,7 @@ class Plotter(object): self.uses_dict(), ), ) - except Exception as e: + except Exception: if exc is not None: type, value, traceback = sys.exc_info() six.reraise(exc, exc(value), traceback)