From 88d09bbcd55cfc16e5b5b2fb9bb8edbce484bf98 Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Fri, 15 Mar 2019 10:19:18 +0100
Subject: [PATCH] [code] Code cleanup

---
 beat/core/plotter.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/beat/core/plotter.py b/beat/core/plotter.py
index e7827e88..38e5f412 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)
-- 
GitLab