mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Fix connect() without arguments
This commit is contained in:
parent
bc2707f6c4
commit
980ae01d10
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ def connect(uri=None, session_args={}, engine_args={}, engine_prefix=''):
|
||||||
|
|
||||||
# If we didn't get a uri, fall back to the default
|
# If we didn't get a uri, fall back to the default
|
||||||
if uri is None:
|
if uri is None:
|
||||||
uri = engine_args[engine_prefix + 'url']
|
uri = engine_args.get(engine_prefix + 'url', None)
|
||||||
if uri is None:
|
if uri is None:
|
||||||
uri = get_default_db_uri()
|
uri = get_default_db_uri()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue