From 15e2f1e8442c9eac5688423d07d7d4db10cb3da3 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 20 Mar 2015 05:31:05 +0000 Subject: [PATCH] exit on error --- pandora/app/management/commands/init_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/app/management/commands/init_db.py b/pandora/app/management/commands/init_db.py index bdfcc1070..1ef901091 100644 --- a/pandora/app/management/commands/init_db.py +++ b/pandora/app/management/commands/init_db.py @@ -12,7 +12,7 @@ def run(cmd): if p.returncode != 0: print stderr - sys.exit(r) + sys.exit(1) class Command(BaseCommand): """