Skip to content

Commit

Permalink
Add slightly more graceful failure in an odd control case
Browse files Browse the repository at this point in the history
  • Loading branch information
prophile committed Mar 6, 2013
1 parent f25bbff commit ed9b832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def wrapper(fn):

def dispatch(options, responder):
for name, callback in HANDLERS.iteritems():
if options[name]:
if options.get(name):
callback(responder, options)
return
raise CommandError()
Expand Down

0 comments on commit ed9b832

Please sign in to comment.