Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork937
Closed as not planned
Description
I am trying to do a cherry-pick, but abort when it fails:
importgit...git=repo.gittry:git.cherry_pick(commit)exceptgit.GitCommandErrorase:git.cherry_pick(abort=True)...
but I get this:
except git.GitCommandError as e: TypeError: catching classes that do not inherit from BaseException is not allowed
Now I can obviously doexcept Exception as e
... But, I would like to be explicit to defer code-paths.
Metadata
Metadata
Assignees
Labels
No labels