python: fix check-python errors in plugins

Fixes some lint errors with unused variables:

contrib/plugins/fail/failtimeout.py:48:5:
  F841 local variable 'e' is assigned to but never used

contrib/plugins/helloworld.py:86:5:
  F841 local variable 'e' is assigned to but never used

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2018-12-10 09:28:11 -08:00 committed by Christian Decker
parent 2834053457
commit db9e250df8
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ for l in sys.stdin:
"result": result,
"id": request['id']
}
except Exception as e:
except Exception:
result = {
"jsonrpc": "2.0",
"error": "Error while processing {}".format(request['method']),

View File

@ -83,7 +83,7 @@ for l in sys.stdin:
"result": result,
"id": request['id']
}
except Exception as e:
except Exception:
result = {
"jsonrpc": "2.0",
"error": "Error while processing {}".format(request['method']),