diff --git a/janine/janine.py b/janine/janine.py index d7c4291..f426ee7 100644 --- a/janine/janine.py +++ b/janine/janine.py @@ -299,8 +299,12 @@ help - Gebe diese Hilfe aus''' self._warnings1 = self._warnings0 self._warnings0 = [] for source in self._sources: - req = requests.get(source) - self._warnings0 = parse_data(req.text) + try: + req = requests.get(source) + self._warnings0 += parse_data(req.text) + except urllib3.exceptions.MaxRetryError: + log.warn('Connection timeout for request to %s', source) + continue # Find new warnings and send the new ones ids = map(lambda x: x.id, self._warnings1)