forked from platypush/platypush
FIX: Possible assert evaluation error.
Some versions/configurations of Python may throw `Boolean value of this clause is not defined` here.
This commit is contained in:
parent
339786b123
commit
10d587efd0
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ class DbPlugin(Plugin):
|
||||||
if not db_ok and last_error:
|
if not db_ok and last_error:
|
||||||
raise last_error
|
raise last_error
|
||||||
|
|
||||||
assert table_, f'No such table: {table}'
|
assert table_ is not None, f'No such table: {table}'
|
||||||
return table_, engine
|
return table_, engine
|
||||||
|
|
||||||
@action
|
@action
|
||||||
|
|
Loading…
Reference in a new issue