[tor-commits] [sbws/master] Stop creating unused variable
juga at torproject.org
juga at torproject.org
Sun Oct 28 07:27:46 UTC 2018
commit 2bd1e3d9cf2ac24a6308e9e5d5de2ba6fa0bff4f
Author: juga0 <juga at riseup.net>
Date: Fri Oct 26 13:26:08 2018 +0000
Stop creating unused variable
So that flake8 version 3.6.0 does not give error
---
sbws/util/timestamp.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbws/util/timestamp.py b/sbws/util/timestamp.py
index eca78c5..00f3d1c 100644
--- a/sbws/util/timestamp.py
+++ b/sbws/util/timestamp.py
@@ -24,7 +24,7 @@ def unixts_to_dt_obj(unixts):
if isinstance(unixts, str):
try:
unixts = int(unixts)
- except ValueError as e:
+ except ValueError:
unixts = float(unixts)
if isinstance(unixts, float):
unixts = int(unixts)
More information about the tor-commits
mailing list