Fix exception alias syntax

This commit is contained in:
Christopher Grebs 2014-01-05 19:06:12 -08:00 • committed by Ben Firshman
commit 3c91315426
2 changed files with 6 additions and 6 deletions

View file

@ -38,18 +38,18 @@ def main():
except KeyboardInterrupt:
log.error("\nAborting.")
exit(1)
except UserError, e:
except UserError as e:
log.error(e.msg)
exit(1)
except NoSuchService, e:
except NoSuchService as e:
log.error(e.msg)
exit(1)
except NoSuchCommand, e:
except NoSuchCommand as e:
log.error("No such command: %s", e.command)
log.error("")
log.error("\n".join(parse_doc_section("commands:", getdoc(e.supercommand))))
exit(1)
except APIError, e:
except APIError as e:
log.error(e.explanation)
exit(1)