Skip to content
Myr

Invoke callbacks in resilent parsing for better bash complete but catch errors.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 4fa40cf · Browse files · 1 file+7 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−4 removed

  • other:+7 added−4 removed

1 file+7 added−4 removed

modified:click/core.py+7 added-4 removed
929 unmodified lines
930 except Exception:931 if not ctx.resilient_parsing:932 raise933 value = None934 if self.callback is not None \935 and not ctx.resilient_parsing:936 value = invoke_param_callback(937 self.callback, ctx, self, value)934 if self.callback is not None:935 try:936 value = invoke_param_callback(937 self.callback, ctx, self, value)938 except Exception:939 if not ctx.resilient_parsing:940 raise941942 if self.expose_value:943 ctx.params[self.name] = value944 return value, args
308 unmodified lines