details = {}
for detail in item.getchildren():
self.debug_print(f"detail {detail.tag} => {detail.attrib} ({detail.text})")
- if detail.text != None:
+ if detail.text is not None:
details[detail.tag] = detail.text
if "category" not in details:
self.debug_print("No category in details?!")