diff options
Diffstat (limited to 'gallery_dl/util.py')
| -rw-r--r-- | gallery_dl/util.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gallery_dl/util.py b/gallery_dl/util.py index f688fa6..dbebfce 100644 --- a/gallery_dl/util.py +++ b/gallery_dl/util.py @@ -646,7 +646,7 @@ class Formatter(): obj = kwdict[key] for func in funcs: obj = func(obj) - if obj is not None: + if obj: break except Exception: pass @@ -769,10 +769,8 @@ class PathFormat(): """Open file and return a corresponding file object""" return open(self.temppath, mode) - def exists(self, archive=None): - """Return True if the file exists on disk or in 'archive'""" - if archive and self.kwdict in archive: - return self.fix_extension() + def exists(self): + """Return True if the file exists on disk""" if self.extension and os.path.exists(self.realpath): return self.check_file() return False |
