We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2ccfb5 commit 5470035Copy full SHA for 5470035
src/allocation/entrypoints/flask_app.py
@@ -3,6 +3,7 @@
3
4
from allocation.adapters import orm
5
from allocation.service_layer import services, unit_of_work
6
+from allocation.service_layer.services import InvalidSku
7
8
app = Flask(__name__)
9
orm.start_mappers()
@@ -32,7 +33,7 @@ def allocate_endpoint():
32
33
request.json["qty"],
34
unit_of_work.SqlAlchemyUnitOfWork(),
35
)
- except services.InvalidSku as e:
36
+ except InvalidSku as e:
37
return {"message": str(e)}, 400
38
39
return {"batchref": batchref}, 201
0 commit comments