Use the exception function for traceback

This commit is contained in:
tcely 2025-01-07 06:38:56 -05:00 committed by GitHub
parent 2d85bcbe14
commit 8ac5b36eee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1163,7 +1163,7 @@ class Media(models.Model):
try:
self.reduce_data(json.loads(self.metadata))
except Exception as e:
log.error(f'reduce_data: {e.msg}')
log.exception('reduce_data: %s', e)
pass
try: