I’m not sure what that means?
(running Windows portable version)
It just closes suddenly, and after restarting it, the period in which it happened is not in the debug report.
This is a screenshot right before it crashes:
edit:
Does that release work when using Wikidata Genre on your system?
The plugin tries to iterate over an empty response and crashes.
Traceback (most recent call last):
File "./picard/webservice/__init__.py", line 514, in _process_reply
self._handle_reply(reply, request)
File "./picard/webservice/__init__.py", line 501, in _handle_reply
handler(document, reply, error)
File "/home/gabri/.config/MusicBrainz/Picard/plugins/wikidata.zip/wikidata/__init__.py", line 229, in parse_wikidata_response
TypeError: 'NoneType' object is not iterable
P.S.: YouTube recommended me a great song while I was searching for this.
Depends on what you mean by fix. A workaround is pretty easy.
def parse_wikidata_response(self, item, item_id, genre_source_type, response, reply, error):
[...]
if tmp == node1.attribs.get('about'):
list1 = node1.children.get('name')
if not list1: ###### This if-else block prevents the crash and logs the error
log.debug('WIKIDATA: Response does not contain a name field')
else: ##########
for node2 in list1:
if node2.attribs.get('lang') == 'en':
genre = node2.text.title()
if not matches_ignored(self.ignore_these_genres_list, genre):
genre_list.append(genre)
log.debug('New genre has been found and ALLOWED: %s' % genre)
else:
log.debug('New genre has been found, but IGNORED: %s' % genre)