Skip to content

Commit 2d91b4c

Browse files
fixes
1 parent 522b4d8 commit 2d91b4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/eSignature/examples/eg043_shared_access.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def create_agent(cls, args):
2424
error_body = json.loads(error_body_json)
2525
error_code = error_body and "errorCode" in error_body and error_body["errorCode"]
2626

27-
if error_code not in ["USER_NOT_FOUND", "USER_LACKS_MEMBERSHIP"]:
27+
user_not_found_error_codes = ["USER_NOT_FOUND", "USER_LACKS_MEMBERSHIP"]
28+
if error_code not in user_not_found_error_codes:
2829
raise err
2930

3031
# create new agent

0 commit comments

Comments
 (0)