uranusjr commented on code in PR #31772:
URL: https://github.com/apache/airflow/pull/31772#discussion_r1222562121
##########
airflow/api_connexion/endpoints/user_endpoint.py:
##########
@@ -119,7 +119,7 @@ def post_user() -> APIResponse:
user = security_manager.add_user(role=roles_to_add, **data)
if not user:
detail = f"Failed to add user `{username}`."
- return Unknown(detail=detail)
+ raise Unknown(detail=detail)
Review Comment:
Oops, a bug found?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]