Skip to content

Commit

Permalink
Fix for codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Daily committed Sep 16, 2024
1 parent 7e0bac9 commit 5dd26ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archive/frames/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ def create(self, validated_data):
# If there is no version data, don't post this to the archived queue
if version_data:
try:
post_to_archived_queue(archived_queue_payload(queue_data, frame=frame))
except Exception:
logger_tags = {'tags': {
'filename': '{}{}'.format(queue_data.get('basename'), version_data[0].get('extension')),
'request_id': queue_data.get('request_id')
}}
post_to_archived_queue(archived_queue_payload(queue_data, frame=frame))
except Exception:
logger.exception('Failed to post frame to archived queue', extra=logger_tags)
return frame

Expand Down

0 comments on commit 5dd26ab

Please sign in to comment.