Commit 88d09bbc authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[code] Code cleanup

parent 7f55777e
......@@ -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.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.errors = schema.validate("plotter", data)
......@@ -400,7 +401,7 @@ class Plotter(object):
except Exception as e:
except Exception:
if exc is not None:
type, value, traceback = sys.exc_info()
six.reraise(exc, exc(value), traceback)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment