Skip to content

Commit 68f5466

Browse files
EmpactMarcoFalke
authored andcommitted
test: Fix “local variable 'e' is assigned to but never used”
flake8 F841 lints, as of flake8 3.6.0
1 parent 3f288a1 commit 68f5466

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/functional/feature_assumevalid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def send_blocks_until_disconnected(self, p2p_conn):
7272
break
7373
try:
7474
p2p_conn.send_message(msg_block(self.blocks[i]))
75-
except IOError as e:
75+
except IOError:
7676
assert not p2p_conn.is_connected
7777
break
7878

test/functional/test_framework/test_framework.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,18 +192,18 @@ def main(self):
192192
self.setup_network()
193193
self.run_test()
194194
success = TestStatus.PASSED
195-
except JSONRPCException as e:
195+
except JSONRPCException:
196196
self.log.exception("JSONRPC error")
197197
except SkipTest as e:
198198
self.log.warning("Test Skipped: %s" % e.message)
199199
success = TestStatus.SKIPPED
200-
except AssertionError as e:
200+
except AssertionError:
201201
self.log.exception("Assertion failed")
202-
except KeyError as e:
202+
except KeyError:
203203
self.log.exception("Key error")
204-
except Exception as e:
204+
except Exception:
205205
self.log.exception("Unexpected exception caught during testing")
206-
except KeyboardInterrupt as e:
206+
except KeyboardInterrupt:
207207
self.log.warning("Exiting after keyboard interrupt")
208208

209209
if success == TestStatus.FAILED and self.options.pdbonfailure:

0 commit comments

Comments
 (0)