Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit 49619ad

Browse files
committed
Handle 403 from group chat metadata endpoint
Fixes #151.
1 parent 77e6a60 commit 49619ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

skpy/chat.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ def fromRaw(cls, skype=None, raw={}):
3939
auth=SkypeConnection.Auth.RegToken,
4040
params={"view": "msnp24Equivalent"}).json()
4141
except SkypeApiException as e:
42-
if e.args[1].status_code != 404:
42+
if e.args[1].status_code in (403, 404):
43+
active = False
44+
else:
4345
raise
44-
active = False
4546
else:
4647
raw.update(info)
4748
return SkypeGroupChat(skype, raw, **SkypeGroupChat.rawToFields(raw, active=active))

0 commit comments

Comments
 (0)