Merge pull request #633 from chapmanjacobd/patch-3

fix: Redirect to /subreddits/search
This commit is contained in:
Serene
2022-07-17 11:17:52 +10:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -414,7 +414,9 @@ class RedditConnector(metaclass=ABCMeta):
try:
assert subreddit.id
except prawcore.NotFound:
raise errors.BulkDownloaderException(f'Source {subreddit.display_name} does not exist or cannot be found')
raise errors.BulkDownloaderException(f"Source {subreddit.display_name} cannot be found")
except prawcore.Redirect:
raise errors.BulkDownloaderException(f"Source {subreddit.display_name} does not exist")
except prawcore.Forbidden:
raise errors.BulkDownloaderException(f'Source {subreddit.display_name} is private and cannot be scraped')