Fix being able to make room with inexistant user
This commit is contained in:
parent
470b031a6f
commit
a992b51ac5
|
@ -479,9 +479,7 @@ class MatrixClient(nio.AsyncClient):
|
||||||
if invite == self.user_id:
|
if invite == self.user_id:
|
||||||
raise InvalidUserInContext(invite)
|
raise InvalidUserInContext(invite)
|
||||||
|
|
||||||
try:
|
if isinstance(await self.get_profile(invite), nio.ProfileGetError):
|
||||||
await self.get_profile(invite)
|
|
||||||
except MatrixError:
|
|
||||||
raise UserNotFound(invite)
|
raise UserNotFound(invite)
|
||||||
|
|
||||||
response = await super().room_create(
|
response = await super().room_create(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user