projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
586edf1
)
Fix connect() without arguments
author
Petr Viktorin
<encukou@gmail.com>
Sat, 12 Mar 2011 14:46:04 +0000
(16:46 +0200)
committer
Eevee
<git@veekun.com>
Sun, 13 Mar 2011 22:43:01 +0000
(15:43 -0700)
pokedex/db/__init__.py
patch
|
blob
|
history
diff --git
a/pokedex/db/__init__.py
b/pokedex/db/__init__.py
index
0da8713
..
13e9a19
100644
(file)
--- 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()