Do not interfere with the exception handling

This commit is contained in:
tcely 2025-04-17 03:06:17 -04:00 committed by GitHub
parent 4bf975bf92
commit 3b5c776634
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -332,7 +332,7 @@ def index_source_task(source_id):
if published_dt is not None:
media.published = published_dt
try:
save_model(media)
media.save()
except IntegrityError as e:
log.error(f'Index media failed: {source} / {media} with "{e}"')
else: