Catch any nio.ErrorResponse to raise MatrixErrors

This commit is contained in:
miruka
2019-12-26 08:16:04 -04:00
parent 4f1e4fcf1c
commit eff64fabd6
5 changed files with 38 additions and 76 deletions

View File

@@ -71,11 +71,6 @@ class MatrixTooLarge(MatrixError):
# Client errors
@dataclass
class UserNotFound(Exception):
user_id: str = field()
@dataclass
class InvalidUserId(Exception):
user_id: str = field()