We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e94d2 commit 46b682fCopy full SHA for 46b682f
scripts/osm2pgsql-replication
@@ -82,7 +82,7 @@ def connect(args):
82
""" Create a connection from the given command line arguments.
83
"""
84
# If dbname looks like a conninfo string use it as such
85
- if any(part in args.database for part in ['=', '://']):
+ if args.database and any(part in args.database for part in ['=', '://']):
86
return psycopg.connect(args.database)
87
88
return psycopg.connect(dbname=args.database, user=args.username,
0 commit comments