diff --git a/redvid/redvid.py b/redvid/redvid.py index 2b15b62..e07e2d7 100644 --- a/redvid/redvid.py +++ b/redvid/redvid.py @@ -84,7 +84,7 @@ def setup(self): if self.page.status_code == 200: return True - raise BaseException('Incorrect URL format') + raise Exception('Incorrect URL format') def scrape(self): """ @@ -94,7 +94,7 @@ def scrape(self): if not self.UNQ: Clean(self.temp) - raise BaseException('No video in this post') + raise Exception('No video in this post') self.r_url = 'https://v.redd.it/' + self.UNQ + '/' @@ -110,7 +110,7 @@ def scrape(self): VQS, AQS = mpdParse(mpd.text, custom_video_qualities=max_min_qualities) if [VQS, AQS] == [0, 0]: - raise BaseException('Qualities not found!') + raise Exception('Qualities not found!') self.videos = VQS