Nihilate / Roboragi

Roboragi is a Reddit bot which helps link anime, manga, and other Japanese media.
GNU Affero General Public License v3.0
167 stars 30 forks source link

Fix the regression with Anilist #55

Closed Nihilate closed 6 years ago

Nihilate commented 6 years ago

The changes to the getClosestX functions in Anilist.py have caused some issues upon deployment.

Traceback (most recent call last): File "C:\xxx\Roboragi\roboragi\Anilist.py", line 361, in getClosestManga title_english = manga.get('title_english', '').lower() or None AttributeError: 'NoneType' object has no attribute 'lower'

Since "title_english" is present, but the value is None, manga.get() returns None, which the program tries to .lower(), causing a failure.