Browse Source

Catch Praw exceptions too.

Nikola Kotur 8 years ago
parent
commit
200f460e48
1 changed files with 1 additions and 1 deletions
  1. 1 1
      reddrip/ripper/__init__.py

+ 1 - 1
reddrip/ripper/__init__.py

@@ -137,7 +137,7 @@ class Ripper(object):
                 )
 
             time.sleep(self.timeout)
-        except requests.exceptions.RequestException as e:
+        except (requests.exceptions.RequestException, praw.errors.HTTPException, praw.errors.Forbidden) as e:
             log.error(
                 "Failed to fetch subreddit %s with error: %s" % (sub["name"], e)
             )