Narrow except

Narrow except to AttributeError
This commit is contained in:
OMEGARAZER
2022-11-08 12:06:20 -05:00
parent dc5a9ef497
commit 3c7f85725e

View File

@@ -116,7 +116,7 @@ class RedditDownloader(RedditConnector):
elif self.args.make_hard_links:
try:
destination.hardlink_to(self.master_hash_list[resource_hash])
except:
except AttributeError:
self.master_hash_list[resource_hash].link_to(destination)
logger.info(
f'Hard link made linking {destination} to {self.master_hash_list[resource_hash]}'