flake8: fix F841

parent 09a197f2
Pipeline #42934 passed with stage
in 1 minute and 8 seconds
......@@ -44,7 +44,7 @@ def main():
if i % 10000 == 0:
logging.info('Received {:d} answers'.format(i))
txn.put(qkey, blob)
except KeyboardInterrupt as err:
except KeyboardInterrupt:
logging.info('SIGINT received, exiting...')
sys.exit(130)
except RuntimeError as err:
......
......@@ -25,7 +25,7 @@ def restart_resolver(script_path: str) -> None:
except subprocess.CalledProcessError as exc:
logging.warning('Resolver restart failed (exit code %d): %s',
exc.returncode, script_path)
except PermissionError as exc:
except PermissionError:
logging.warning('Resolver restart failed (permission error): %s',
script_path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment