Skip to content

Commit

Permalink
correctly convert to list
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Caha committed Dec 8, 2023
1 parent 72a99f6 commit c16e04a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import tempfile

from dynaconf import Dynaconf
import dynaconf

from smtp_functions import create_connection_and_log_user

Expand Down Expand Up @@ -158,6 +159,8 @@ 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]
return connection.skip_tables
else:
return []
Expand Down

0 comments on commit c16e04a

Please sign in to comment.