From 37e1fcd540e2549ea13a3d22d34a4244d4a640dd Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Thu, 14 Jul 2022 18:10:53 +0200 Subject: [PATCH] comment --- configs/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/config.py b/configs/config.py index e9bd084..41b531a 100644 --- a/configs/config.py +++ b/configs/config.py @@ -52,6 +52,7 @@ class Config: assert self.sheet is not None, "'sheet' must be provided either through command line or configuration file" def ensure_set(l): + # always returns a set of strings, can receive a set or a string l = l if isinstance(l, list) else [l] return set([x for x in l if isinstance(x, str) and len(x) > 0]) self.worksheet_allow = ensure_set(execution.get("worksheet_allow", []))