1
0
Fork 0
mirror of synced 2024-05-29 08:29:55 +12:00

Narrow except

Narrow except to AttributeError
This commit is contained in:
OMEGARAZER 2022-11-08 12:06:20 -05:00
parent dc5a9ef497
commit 3c7f85725e
No known key found for this signature in database
GPG key ID: D89925310D306E35

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]}'