We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f7807 commit 4c13c48Copy full SHA for 4c13c48
jsonrpc/dispatcher.py
@@ -70,14 +70,14 @@ def decorator(f):
70
def _wrap_method(self, f):
71
@wraps(f)
72
def _method(*args, **kwargs):
73
- for hook in self._before_request_hooks:
74
- hook()
+ try:
+ for hook in self._before_request_hooks:
75
+ hook()
76
- nf = f
77
- for deco in reversed(self._decorators):
78
- nf = deco(nf)
+ nf = f
+ for deco in reversed(self._decorators):
79
+ nf = deco(nf)
80
- try:
81
return nf(*args, **kwargs)
82
except Exception as e:
83
for E, h in self._error_handler_spec.items():
0 commit comments