Skip to content

Commit

Permalink
Further minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
natfarleydev committed Mar 30, 2017
1 parent e4538e5 commit 67ded53
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions beards/repo_helper/python/repo_helper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@ async def make_repo_yaml(self, msg):
gh = Github()
try:
repo = gh.get_repo(repo_name)

data = {
"name": repo.name,
"description": repo.description,
"git_url": repo.clone_url
}
except github.GithubException.UnknownObjectException:
await self.sender.sendMessage("Repo not found.")
return

data = {
"name": repo.name,
"description": repo.description,
"git_url": repo.clone_url
}

name = "{}.yml".format(data["name"])
encoded_data = yaml.dump(data,
Expand Down

0 comments on commit 67ded53

Please sign in to comment.