From 406b8a20a626cb695b22be97ea338580f951e75f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 29 Apr 2020 23:10:50 +0200 Subject: [PATCH] requests riase if status not ok --- src/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources.py b/src/resources.py index 684ece8..5b9f136 100644 --- a/src/resources.py +++ b/src/resources.py @@ -75,7 +75,7 @@ class SampleResource(Resource): 'wave.wav', soundfile, soundfile.content_type, - {'Content-Length': soundfile.content_length})}) + {'Content-Length': soundfile.content_length})}).raise_for_status() rabbitmq_channel.basic_publish( exchange=RABBITMQ_EXCHANGE, routing_key='feature',