Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #59 from lmartinking/patch-1
Browse files Browse the repository at this point in the history
Remove redundant try/catch, as args.get() will return None if the key is...
  • Loading branch information
myusuf3 committed Jul 16, 2012
2 parents 8e41e25 + 69efb6c commit 5cf243a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions octogit/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,8 @@ def begin():
create_issue(username, url, issue_name, description)
sys.exit(0)

issue_number = None
try:
issue_number = args.get(1)
except:
pass
issue_number = args.get(1)

if issue_number is not None:
if args.get(2) == 'close':
close_issue(username, url, issue_number)
Expand Down

0 comments on commit 5cf243a

Please sign in to comment.