-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor changes to error handling when fetching posts & media
- handle error when attempting to get posts for sub if data can't be found: Gert would panic without indicating which sub couldn't be fetched. If trying to get multiple subs, gert will now print an error and move onto the next - handle error when post has no media data, common with crossposts mainly. These would also panic when trying to unwrap media - Prevent gert from downloading imgur media when that media has been removed Especially on older subs a lot of media has been removed so gert downloads and saves the removed image https://i.imgur.com/removed.png, this just skips the saving of those files.
- Loading branch information
Showing
3 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters