From 92071d02f4b05a5a819c5fd243d8d4b0d97a8a1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 24 Feb 2021 14:49:17 +0100 Subject: [PATCH] fix crash when 'base-directory' is an empty string (#1339) --- gallery_dl/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/util.py b/gallery_dl/util.py index a1a465a1..a858079c 100644 --- a/gallery_dl/util.py +++ b/gallery_dl/util.py @@ -769,7 +769,7 @@ class PathFormat(): basedir = extractor.config("base-directory") if basedir is None: basedir = "." + os.sep + "gallery-dl" + os.sep - else: + elif basedir: basedir = expand_path(basedir) if os.altsep and os.altsep in basedir: basedir = basedir.replace(os.altsep, os.sep)