-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues and added correct labels.
Description
Current Behavior
when getting user details using
ayon_api.get_user_by_name("pavithraj")
it throws an error
File "C:\Python39\lib\site-packages\ayon_api\server_api.py", line 326, in fill_own_attribs
attributes = set(entity["ownAttrib"])
KeyError: 'ownAttrib'
think this was added new
all_attrib = user.get("allAttrib")
if isinstance(all_attrib, str):
user["allAttrib"] = json.loads(all_attrib)
fill_own_attribs(user)
Expected Behavior
It should return the user data
Steps To Reproduce:
import os
import ayon_api
os.environ["AYON_SERVER_URL"] = ""
os.environ["AYON_API_KEY"] = ''
user_data = ayon_api.get_user_by_name("pavithraj")
Additional context:
Version
ayon-python-api 1.1.3
python 3.9 & 3.11
What platform were you running when you found the bug?
Windows
You can also provide any additional information relevant to the issue.
this works properly when i am using python 3.10
Relevant log output:
File "C:\Python39\lib\site-packages\ayon_api\server_api.py", line 326, in fill_own_attribs
attributes = set(entity["ownAttrib"])
KeyError: 'ownAttrib'Metadata
Metadata
Assignees
Labels
No labels