Hard-code the class name

This commit is contained in:
tcely 2025-04-16 04:36:13 -04:00 committed by GitHub
parent 6062725a79
commit 7c14fa3261
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1181,7 +1181,7 @@ class Media(models.Model):
return {}
try:
data.update(self.new_metadata.with_formats)
except self.new_metadata.DoesNotExist:
except Metadata.DoesNotExist:
pass
setattr(self, '_cached_metadata_dict', data)
return data