Skip to content

Commit b72c9a8

Browse files
authored
chore: update register.py to allow 200 response code (#374)
1 parent 3c4b92d commit b72c9a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnleashClient/api/register.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def register_client(
7171
**custom_options,
7272
)
7373

74-
if resp.status_code != 202:
74+
if resp.status_code not in {200, 202}:
7575
log_resp_info(resp)
7676
LOGGER.warning(
7777
"Unleash Client registration failed due to unexpected HTTP status code: %s",

0 commit comments

Comments
 (0)