Fixed check for None dbc

This commit is contained in:
Kevin Frommelt 2013-08-07 18:46:15 -05:00
parent aca4d4cdc3
commit 30970c3cd3

View File

@ -192,7 +192,7 @@ def query(database, query, **connection_args):
connection_args.update({'connection_db': database, 'connection_conv': conv})
dbc = _connect(**connection_args)
if dbc is not None:
if dbc is None:
return {}
cur = dbc.cursor()
start = time.time()