From 9f0fbf8b5f1b265eb8918c5c968d8bd13ce04777 Mon Sep 17 00:00:00 2001 From: pyoor Date: Tue, 26 Apr 2016 22:11:31 -0400 Subject: [PATCH] Bugfix in server.py --- server.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index fc61147..a0210bd 100644 --- a/server.py +++ b/server.py @@ -88,6 +88,7 @@ def main(): print args.d if args.d: db_path = args.d + action = "new" if os.path.isfile(db_path): if args.replace and args.append: parser.error("Conflicting arguments. You must specify --append OR --replace!") @@ -98,10 +99,8 @@ def main(): action = "replace" elif args.append: action = "append" - else: - action = "new" - prepare_db(db_path, action) + prepare_db(db_path, action) if args.o: out_file = args.o