Skip to content
Myr

refactor try/except

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

authored by David Lord · committed by David Lord · parent 445428e · Browse files · 1 file+3 added−2 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+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:src/click/decorators.py+3 added-2 removed
179 unmodified lines
180 raise TypeError("Attempted to convert a callback into a command twice.")181182 try:183 params = f.__click_params__ # type: ignore184 params.reverse()185 del f.__click_params__ # type: ignore184 except AttributeError:185 params = []186 else:187 params.reverse()188 del f.__click_params__ # type: ignore189190 if attrs.get("help") is None:191 attrs["help"] = inspect.getdoc(f)192
285 unmodified lines