]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Handle the possilbe case of splitting on an empty string returning a list with an...
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Tue, 7 Mar 2023 23:42:23 +0000 (15:42 -0800)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Wed, 8 Mar 2023 15:32:17 +0000 (07:32 -0800)
src/paperless/settings.py

index 7b1b600c8713e3aeffd2a37b285990914096fc0b..d051a6ebc18610799179a8db51881ea6dd8f083b 100644 (file)
@@ -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: