Skip to content

Commit 7b85e9b

Browse files
committed
correct status code
1 parent 1128245 commit 7b85e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/catalog/src/simcore_service_catalog/api/rest/_services_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ async def _get_service_labels(
148148
# `busybox:latest` or `traefik:latest` because
149149
# the director-v0 cannot extract labels from them
150150
# and will fail validating the key or the version
151-
if err.status_code == status.HTTP_400_BAD_REQUEST:
151+
if err.status_code == status.HTTP_422_UNPROCESSABLE_ENTITY:
152152
return None
153153
raise
154154

0 commit comments

Comments
 (0)