Skip to content

Commit

Permalink
python: fix check-python errors in plugins
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jb55 authored and cdecker committed Dec 10, 2018
1 parent 2834053 commit db9e250
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/plugins/fail/failtimeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def json_getmanifest(request):
"result": result,
"id": request['id']
}
except Exception as e:
except Exception:
result = {
"jsonrpc": "2.0",
"error": "Error while processing {}".format(request['method']),
Expand Down
2 changes: 1 addition & 1 deletion contrib/plugins/helloworld.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def json_init(request, options, configuration):
"result": result,
"id": request['id']
}
except Exception as e:
except Exception:
result = {
"jsonrpc": "2.0",
"error": "Error while processing {}".format(request['method']),
Expand Down

0 comments on commit db9e250

Please sign in to comment.