Skip to content

Commit

Permalink
Fix postgres URL in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
François Rossigneux committed Jan 21, 2019
1 parent 7dd30b9 commit 88cea34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsec/backend/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def init_cmd(db, force):
"""
Initialize a new backend's PostgreSQL database.
"""
if not db.startswith("postgresql://") or db.startswith("postgres://"):
if not (db.startswith("postgresql://") or db.startswith("postgres://")):
raise SystemExit("Can only initialize a PostgreSQL database.")

debug = "DEBUG" in os.environ
Expand Down

0 comments on commit 88cea34

Please sign in to comment.