Skip to content

Commit

Permalink
Fix donnemartin#49: create-repo error if no description specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu343726 committed May 28, 2016
1 parent 64d3d33 commit 287a1d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gitsome/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,10 @@ def create_repo(self, repo_name, repo_desc='', private=False):
repo = self.config.api.create_repository(repo_name,
repo_desc,
private=private)

description = repo.description if repo.description is not None else ''
click.secho(('Created repo: ' + repo.full_name + '\n' +
repo.description),
description),
fg=self.config.clr_message)
except UnprocessableEntity as e:
click.secho('Error creating repo: ' + str(e.msg),
Expand Down

0 comments on commit 287a1d3

Please sign in to comment.