mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fixed check for None dbc
This commit is contained in:
parent
aca4d4cdc3
commit
30970c3cd3
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user