[tor-commits] [sbws/master] Fix two linter warnings

pastly at torproject.org pastly at torproject.org
Tue Jun 26 15:36:49 UTC 2018


commit ef6e152b3c94f3e258575521e6d0887d7b68debc
Author: Matt Traudt <sirmatt at ksu.edu>
Date:   Thu Jun 14 12:44:49 2018 -0400

    Fix two linter warnings
---
 sbws/lib/v3bwfile.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sbws/lib/v3bwfile.py b/sbws/lib/v3bwfile.py
index 40a8fd5..ddfefe7 100644
--- a/sbws/lib/v3bwfile.py
+++ b/sbws/lib/v3bwfile.py
@@ -75,7 +75,7 @@ def read_started_ts(conf):
     """
     try:
         filepath = conf['paths']['started_filepath']
-    except TypeError as e:
+    except TypeError:
         return ''
     try:
         with FileLock(filepath):
@@ -184,7 +184,7 @@ class V3BwHeader(object):
         assert isinstance(lines, list)
         try:
             index_terminator = lines.index(TERMINATOR)
-        except ValueError as e:
+        except ValueError:
             # is not a bw file or is v100
             log.warn('Terminator is not in lines')
             return None





More information about the tor-commits mailing list