From f100198a8a60af378a2c92d8566711de29968bab Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Tue, 7 Mar 2023 15:42:23 -0800 Subject: [PATCH] Handle the possilbe case of splitting on an empty string returning a list with an empty string --- src/paperless/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 7b1b600c8..d051a6ebc 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -84,7 +84,7 @@ def __get_list( string, or the default if the key does not exist """ if key in os.environ: - return os.environ[key].split(sep) + return list(filter(None, os.environ[key].split(sep))) elif default is not None: return default else: