Add missing return statement

This commit is contained in:
Serene-Arc 2021-06-10 18:59:22 +10:00
parent 5c8702da44
commit 8ba2d0bb55

View File

@ -104,6 +104,7 @@ class RedditDownloader(RedditConnector):
except OSError as e: except OSError as e:
logger.exception(e) logger.exception(e)
logger.error(f'Failed to write file to {destination} in submission {submission.id}: {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()) creation_time = time.mktime(datetime.fromtimestamp(submission.created_utc).timetuple())
os.utime(destination, (creation_time, creation_time)) os.utime(destination, (creation_time, creation_time))
self.master_hash_list[resource_hash] = destination self.master_hash_list[resource_hash] = destination