Skip to content

Commit

Permalink
Merge pull request #41 from donnemartin/develop
Browse files Browse the repository at this point in the history
Fix #40: create-issue error if no body is specified
  • Loading branch information
donnemartin committed May 27, 2016
2 parents c30cb8e + 64ce02e commit bafe7fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitsome/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ def create_issue(self, user_repo, issue_title, issue_desc=''):
issue_title,
issue_desc)
if type(issue) is not null.NullObject:
click.secho('Created issue: ' + issue.title + '\n' + issue.body,
body = issue.body if issue.body is not None else ''
click.secho('Created issue: ' + issue.title + '\n' + body,
fg=self.config.clr_message)
else:
click.secho('Error creating issue.', fg=self.config.clr_error)
Expand Down

0 comments on commit bafe7fd

Please sign in to comment.