From 04d0a5191f5f1de7450d71e023cdc5a2321e4baa Mon Sep 17 00:00:00 2001 From: Jan Caha Date: Sat, 9 Dec 2023 13:54:19 +0100 Subject: [PATCH] fix skip tables --- config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 47b539b..f1d84c0 100644 --- a/config.py +++ b/config.py @@ -159,8 +159,10 @@ def get_ignored_tables( connection.skip_tables, list, ): - if isinstance(connection.skip_tables, dynaconf.vendor.box.box_list.BoxList): - return connection.skip_tables.to_list()[0] + if len(connection.skip_tables) < 1: + return [] + elif isinstance(connection.skip_tables, dynaconf.vendor.box.box_list.BoxList): + return connection.skip_tables.to_list() return connection.skip_tables else: return []