kuruoujou / XBMal

XBMal - the XBMC MAL Plugin. Update your MyAnimeList based on your XBMC Library!
GNU General Public License v3.0
10 stars 4 forks source link

MAL Update Errors #3

Closed kuruoujou closed 11 years ago

kuruoujou commented 11 years ago

Just so there is a record of it, I received an email with update errors. One was (just including the relevant lines from the traceback)

...in updater.py...
line 57, in fullUpdate
if details[u'episodes'] is not None:
TypeError: 'bool' object is unsubscriptable

and the other was

...in updater.py...
line 30, in fullUpdate
malListIDs = malList.keys()
AttributeError: 'bool' object has no attribute 'keys'

The second error occurred occasionally after starting a different file (usually from outside the XBMC library).

I've checked it and the timing (when they played the video it stopped) was coincidental - it appears that XBMal is having occasional problems connecting to either MAL or the MAL API from their machine. The myanimelist library returns False when it has an issue of some sort on the relevant functions, and since my items aren't booleans, python doesn't like how I'm treating them when they suddenly become booleans. I'm adding some error checking to fix this now, and will update this issue when it's complete.