You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the connectivity is bad and the XML is only partially read, the syncing fails and an IncompletRead exception is triggered. The app stays active though and syncing again with a better connectivity works fine. No data corruption. A suggested solution would be to put this part of the syncing in a try block and trigger a repeat with some delay if it occurs. Here is a trace:
Traceback (most recent call last):
File "/home/seth/Source/animecollector/src/AnimeCollector/gtkctl.py", line 51, in on_button_sync_clicked
if MODCTL.anime_data.sync():
File "/home/seth/Source/animecollector/src/AnimeCollector/myanimelist.py", line 89, in sync
remote_db = _fetch_list(self.username)
File "/home/seth/Source/animecollector/src/AnimeCollector/myanimelist.py", line 171, in _fetch_list
fetch_response = urlopen(fetch_url).read()
File "/usr/lib/python2.5/socket.py", line 304, in read
data = self._sock.recv(rbufsize)
File "/usr/lib/python2.5/httplib.py", line 509, in read
return self._read_chunked(amt)
File "/usr/lib/python2.5/httplib.py", line 554, in _read_chunked
value += self._safe_read(amt)
File "/usr/lib/python2.5/httplib.py", line 604, in _safe_read
raise IncompleteRead(s)
httplib.IncompleteRead: ['tatus>2</series_status>\n\t\t\t\t<series_start>1998-10-02</series_s ...
The text was updated successfully, but these errors were encountered:
If the connectivity is bad and the XML is only partially read, the syncing fails and an IncompletRead exception is triggered. The app stays active though and syncing again with a better connectivity works fine. No data corruption. A suggested solution would be to put this part of the syncing in a try block and trigger a repeat with some delay if it occurs. Here is a trace:
Traceback (most recent call last):
File "/home/seth/Source/animecollector/src/AnimeCollector/gtkctl.py", line 51, in on_button_sync_clicked
if MODCTL.anime_data.sync():
File "/home/seth/Source/animecollector/src/AnimeCollector/myanimelist.py", line 89, in sync
remote_db = _fetch_list(self.username)
File "/home/seth/Source/animecollector/src/AnimeCollector/myanimelist.py", line 171, in _fetch_list
fetch_response = urlopen(fetch_url).read()
File "/usr/lib/python2.5/socket.py", line 304, in read
data = self._sock.recv(rbufsize)
File "/usr/lib/python2.5/httplib.py", line 509, in read
return self._read_chunked(amt)
File "/usr/lib/python2.5/httplib.py", line 554, in _read_chunked
value += self._safe_read(amt)
File "/usr/lib/python2.5/httplib.py", line 604, in _safe_read
raise IncompleteRead(s)
httplib.IncompleteRead: ['tatus>2</series_status>\n\t\t\t\t<series_start>1998-10-02</series_s ...
The text was updated successfully, but these errors were encountered: