-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSLError: ('The read operation timed out',) #1219
Comments
INFOPython Version: ERROR2017-02-24 15:24:39 ERROR FINDSUBTITLES :: [6fb38a6] Unable to find subtitles for Training Day S01E04. Error: The read operation timed out Traceback (most recent call last): File "/home/pi/Medusa/medusa/subtitles.py", line 1031, in run episode_object.download_subtitles() File "/home/pi/Medusa/medusa/tv/episode.py", line 272, in download_subtitles notifiers.notify_subtitle_download(self.pretty_name(), subtitle_list) File "/home/pi/Medusa/medusa/notifiers/__init__.py", line 82, in notify_subtitle_download n.notify_subtitle_download(ep_name, lang) File "/home/pi/Medusa/medusa/notifiers/nma.py", line 25, in notify_subtitle_download message=ep_name + ": " + lang) File "/home/pi/Medusa/medusa/notifiers/nma.py", line 62, in _sendNMA response = p.push(application=title, event=event, description=message, priority=nma_priority, batch_mode=batch) File "/home/pi/Medusa/lib/pynma/pynma.py", line 106, in push res = self.callapi('POST', ADD_PATH, datas) File "/home/pi/Medusa/lib/pynma/pynma.py", line 120, in callapi resp = http_handler.getresponse() File "/usr/lib/python2.7/httplib.py", line 1111, in getresponse response.begin() File "/usr/lib/python2.7/httplib.py", line 444, in begin version, status, reason = self._read_status() File "/usr/lib/python2.7/httplib.py", line 400, in _read_status line = self.fp.readline(_MAXLINE + 1) File "/usr/lib/python2.7/socket.py", line 476, in readline data = self._sock.recv(self._rbufsize) File "/usr/lib/python2.7/ssl.py", line 714, in recv return self.read(buflen) File "/usr/lib/python2.7/ssl.py", line 608, in read v = self._sslobj.read(len or 1024) SSLError: ('The read operation timed out',) STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
Yes, remove these broad try/except: Line 1033 in 6fb38a6
the thread loop that executes should be the only place with a broad catch and using exception handler to log the exception. That way we can easily handle each exception type in a proper way and in a single place |
Exception handling should be targeted and specific. It should wrap the minimum lines of exceptional code and check only for the exceptions expected. |
@ratoaq2 that exception is inside a loop. so if one fails, it will continue to download another Is there another way instead of removing it so it can continue? |
@ratoaq2 is there something we can do about this?
The text was updated successfully, but these errors were encountered: