[scrobbles] Fix dataclass dict converstion error

This commit is contained in:
2025-11-17 21:44:50 -05:00
parent 971fee5b4b
commit 7309181fed

View File

@ -13,7 +13,10 @@ User = get_user_model()
class ScrobbleLogDataEncoder(json.JSONEncoder):
def default(self, o):
return o.__dict__
try:
return o.__dict__
except AttributeError:
return {}
class ScrobbleLogDataDecoder(json.JSONDecoder):