Skip to content

Commit 5470035

Browse files
committed
change exception import in flask app
1 parent d2ccfb5 commit 5470035

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/allocation/entrypoints/flask_app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from allocation.adapters import orm
55
from allocation.service_layer import services, unit_of_work
6+
from allocation.service_layer.services import InvalidSku
67

78
app = Flask(__name__)
89
orm.start_mappers()
@@ -32,7 +33,7 @@ def allocate_endpoint():
3233
request.json["qty"],
3334
unit_of_work.SqlAlchemyUnitOfWork(),
3435
)
35-
except services.InvalidSku as e:
36+
except InvalidSku as e:
3637
return {"message": str(e)}, 400
3738

3839
return {"batchref": batchref}, 201

0 commit comments

Comments
 (0)