test: Fix “local variable 'e' is assigned to but never used”

flake8 F841 lints, as of flake8 3.6.0
This commit is contained in:
Ben Woosley authored and MarcoFalke committed 2019-07-31 16:12:12 -04:00
1 parent 3f288a1c05
commit 68f546635d
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ class AssumeValidTest(BitcoinTestFramework):
break
try:
p2p_conn.send_message(msg_block(self.blocks[i]))
except IOError as e:
except IOError:
assert not p2p_conn.is_connected
break