From e753406a6c82620b827953a6a1bca8222cec446e Mon Sep 17 00:00:00 2001 From: sushilicious <*> Date: Mon, 18 Jun 2018 04:42:06 -0400 Subject: [PATCH] Just in case, check whether picture exists for commit This is in addition to the other commit logic. --- instaloader/instaloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instaloader/instaloader.py b/instaloader/instaloader.py index b9a8075..62ae227 100644 --- a/instaloader/instaloader.py +++ b/instaloader/instaloader.py @@ -180,7 +180,7 @@ class Instaloader: filename += '.' + file_extension # A post is considered "commited" if the json file exists and is not malformed. if self.commit_mode: - if self._committed: + if self._committed and os.path.isfile(filename): self.context.log(filename + ' exists', end=' ', flush=True) return False else: