Skip to content

Commit 3a90ebc

Browse files
author
Steven Silvester
authored
Merge pull request #75 from jtpio/draft-changelog-commit
Handle commit message failure
2 parents e5cbe37 + 08affb5 commit 3a90ebc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jupyter_releaser/lib.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@ def make_changelog_pr(auth, branch, repo, title, commit_message, body, dry_run=F
143143
util.run("git stash apply")
144144

145145
# Add a commit with the message
146-
util.run(commit_message)
146+
try:
147+
util.run(commit_message)
148+
except CalledProcessError as e:
149+
util.log(str(e))
150+
return
147151

148152
# Create the pull
149153
owner, repo_name = repo.split("/")

0 commit comments

Comments
 (0)