Skip to content

Commit

Permalink
Bugfix in server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoor committed Apr 27, 2016
1 parent 38b1504 commit 9f0fbf8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand All @@ -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
Expand Down

0 comments on commit 9f0fbf8

Please sign in to comment.