Преглед на файлове

BORG_REPO env var: behave the same when unset or when set to empty string

Thomas Waldmann преди 9 месеца
родител
ревизия
ec8a127b01
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/borg/helpers/parseformat.py

+ 1 - 1
src/borg/helpers/parseformat.py

@@ -512,7 +512,7 @@ class Location:
         if not text:
             # we did not get a text to parse, so we try to fetch from the environment
             text = os.environ.get(self.repo_env_var)
-            if text is None:
+            if not text:  # None or ""
                 return
 
         self.raw = text  # as given by user, might contain placeholders