Private GIT

Skip to content
Snippets Groups Projects
Commit 08361c9f authored by Fernando's avatar Fernando Committed by fernandog
Browse files

Add try|except for trakt_api.traktRequest and fix log messages in TraktChecker

Fixes tons of this errors in my logs:

```
AAConnectionError: ('Connection aborted.', gaierror(-2, 'Nome ou servi\xc3\xa7o desconhecido'))
AA    raise ConnectionError(err, request=request)
AA  File "/home/osmc/SickRage/lib/requests/adapters.py", line 415, in send
AA    r = adapter.send(request, **kwargs)
AA  File "/home/osmc/SickRage/lib/requests/sessions.py", line 576, in send
AA    resp = self.send(prep, **send_kwargs)
AA  File "/home/osmc/SickRage/lib/requests/sessions.py", line 464, in request
AA    data=json.dumps(data) if data else [], verify=self.verify)
AA  File "/home/osmc/SickRage/lib/libtrakt/trakt.py", line 85, in traktRequest
AATraceback (most recent call last):
```
parent b11e8e70
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment