sampsyo/pyacoustid — pull request #12 by shweppsie (2012-02-25 10:24:24+00:00)
Title: pyacoustid crashes when artist and title are missing

pyacoustid crashes whenever it tries to return 07a22ad2-2709-4bcb-9951-49687d099867. I suspect this is because it has been removed from MusicBrainz.

Traceback (most recent call last):
File "id.py", line 11, in
for i in acoustid.match(apikey, path):
File "/src/pyacoustid/acoustid.py", line 206, in parse_lookup_result
if recording['artists']:
KeyError: 'artists'

The attached commit checks for missing information and returns None when it is unavailable, much like the existing code.