[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Fix two linter warnings
commit ef6e152b3c94f3e258575521e6d0887d7b68debc
Author: Matt Traudt <sirmatt@xxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits