##// END OF EJS Templates
py3: handle keyword arguments correctly in hook.py...
Pulkit Goyal -
r35358:056a9c88 default
parent child Browse files
Show More
@@ -91,7 +91,7 b' def _pythonhook(ui, repo, htype, hname, '
91 starttime = util.timer()
91 starttime = util.timer()
92
92
93 try:
93 try:
94 r = obj(ui=ui, repo=repo, hooktype=htype, **args)
94 r = obj(ui=ui, repo=repo, hooktype=htype, **pycompat.strkwargs(args))
95 except Exception as exc:
95 except Exception as exc:
96 if isinstance(exc, error.Abort):
96 if isinstance(exc, error.Abort):
97 ui.warn(_('error: %s hook failed: %s\n') %
97 ui.warn(_('error: %s hook failed: %s\n') %
General Comments 0
You need to be logged in to leave comments. Login now