Also catch AttributeError since it is possible to not get back JSON data. Fixes #457
Merge pull request #500 from sivel/issue/457

Also catch AttributeError since it is possible to not get back JSON data. Fixes #457