Skip to content

Commit

Permalink
Update router.py
Browse files Browse the repository at this point in the history
  • Loading branch information
underdarknl authored Oct 31, 2024
1 parent 3087ee1 commit bb61f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bytes/bytes/api/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def create_raw(
raw_data=RawDataMeta(id=raw_id, boefje_meta=raw_data.boefje_meta, mime_types=raw_data.mime_types),
)
event_manager.publish(event)
except pika.exceptions.AMQPError:
except pika.exceptions.AMQPError as error:
logger.exception("Error sending 'new raw data' event to RabbitMQ")
raise HTTPException(
status_code=codes.INTERNAL_SERVER_ERROR, detail="Error sending 'new raw data' event to RabbitMQ"
Expand Down

0 comments on commit bb61f1a

Please sign in to comment.