Skip to content

Commit 46239bd

Browse files
committed
#1570 Workaround of traceback
1 parent a1b2f5c commit 46239bd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

atlassian/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.4
1+
4.0.5

atlassian/bitbucket/cloud/common/users.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ def __init__(self, data, *args, **kwargs):
8787
@property
8888
def user(self):
8989
"""User object with user information of the participant."""
90+
if self.get_data("type") == "app_user":
91+
# If the participant is an app user, return an AppUser instance
92+
return AppUser(None, self.get_data("app_user"), **self._new_session_args)
9093
return User(None, self.get_data("user"), **self._new_session_args)
9194

9295
@property

0 commit comments

Comments
 (0)