subliminal icon indicating copy to clipboard operation
subliminal copied to clipboard

Error on Timeout

Open sabiwa opened this issue 14 years ago • 3 comments

When running Subliminal 0.5 I get the following message.

ERROR: subliminal.worker Exception raised in worker Thread-1 Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/subliminal-0.5-py2.7.egg/subliminal/core.py", line 298, in run subtitles = plugin.list(task.video, task.languages) File "/usr/local/lib/python2.7/dist-packages/subliminal-0.5-py2.7.egg/subliminal/plugins.py", line 376, in list results = self.query(video.season, video.episode, languages, video.path or video.release, video.tvdbid, video.series) File "/usr/local/lib/python2.7/dist-packages/subliminal-0.5-py2.7.egg/subliminal/plugins.py", line 354, in query r = self.session.get('%sGetAllSubsFor/%s/%s/%s/%s/%s' % (self.server_url, request_id, season, episode, language, request_is_tvdbid)) File "/usr/local/lib/python2.7/dist-packages/requests-0.8.3-py2.7.egg/requests/sessions.py", line 208, in get return self.request('get', url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests-0.8.3-py2.7.egg/requests/sessions.py", line 191, in request r.send(prefetch=prefetch) File "/usr/local/lib/python2.7/dist-packages/requests-0.8.3-py2.7.egg/requests/models.py", line 459, in send raise Timeout('Request timed out.') Timeout: Request timed out.

Just trying to help out not to bash the wonderful project.

sabiwa avatar Dec 09 '11 16:12 sabiwa

Well this can happen if the website is down. It is handled by the worker which will just skip that task and work on the next one.

Diaoul avatar Dec 09 '11 18:12 Diaoul

Maybe I should catch this and print a nice message instead

Diaoul avatar Dec 11 '11 13:12 Diaoul

Even if the request times out, its handled by the worker. I close this

Diaoul avatar Mar 10 '12 00:03 Diaoul