From 065e4d71cc745fa5e07188d97f2375a8c915c59a Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Sat, 12 Mar 2011 16:46:04 +0200 Subject: [PATCH 1/1] Fix connect() without arguments --- pokedex/db/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokedex/db/__init__.py b/pokedex/db/__init__.py index 0da8713..13e9a19 100644 --- a/pokedex/db/__init__.py +++ b/pokedex/db/__init__.py @@ -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 uri is None: - uri = engine_args[engine_prefix + 'url'] + uri = engine_args.get(engine_prefix + 'url', None) if uri is None: uri = get_default_db_uri() -- 2.7.4