Skip to content

Commit

Permalink
manage.py exiting with proper exit codes
Browse files Browse the repository at this point in the history
  • Loading branch information
rsh7 committed Feb 2, 2018
1 parent 695f759 commit 94a7186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manage.py
Expand Up @@ -130,9 +130,9 @@ def add_admin(username, force=False):
"""Make user an admin."""
try:
db.user.set_admin(username, admin=True, force=force)
click.echo("Made %s an admin." % username)
except db.exceptions.DatabaseException as e:
click.echo("Error: %s" % e, err=True)
click.echo("Made %s an admin." % username)


@cli.command()
Expand Down

0 comments on commit 94a7186

Please sign in to comment.