From 8ba2d0bb555d059acd216222cb16c5d76d0d3942 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Thu, 10 Jun 2021 18:59:22 +1000 Subject: [PATCH] Add missing return statement --- bdfr/downloader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bdfr/downloader.py b/bdfr/downloader.py index 61158a3..a0d8834 100644 --- a/bdfr/downloader.py +++ b/bdfr/downloader.py @@ -104,6 +104,7 @@ class RedditDownloader(RedditConnector): except OSError as e: logger.exception(e) logger.error(f'Failed to write file to {destination} in submission {submission.id}: {e}') + return creation_time = time.mktime(datetime.fromtimestamp(submission.created_utc).timetuple()) os.utime(destination, (creation_time, creation_time)) self.master_hash_list[resource_hash] = destination