From 10d587efd0a3f64cca73c2bfe0e3c1573f501aed Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 26 Apr 2023 02:25:28 +0200 Subject: [PATCH] FIX: Possible assert evaluation error. Some versions/configurations of Python may throw `Boolean value of this clause is not defined` here. --- platypush/plugins/db/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/db/__init__.py b/platypush/plugins/db/__init__.py index 70708bd8f6..0b84900f99 100644 --- a/platypush/plugins/db/__init__.py +++ b/platypush/plugins/db/__init__.py @@ -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