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:
Fabio Manganiello 2023-04-26 02:25:28 +02:00
parent 339786b123
commit 10d587efd0
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -125,7 +125,7 @@ class DbPlugin(Plugin):
if not db_ok and 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
@action