diff --git a/matrix_client/checks.py b/matrix_client/checks.py index a1de5401..7e51e7c5 100644 --- a/matrix_client/checks.py +++ b/matrix_client/checks.py @@ -12,6 +12,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + + def check_room_id(room_id): if not room_id.startswith("!"): raise ValueError("RoomIDs start with !") diff --git a/matrix_client/errors.py b/matrix_client/errors.py index 6c0897d3..e9dc8fe3 100644 --- a/matrix_client/errors.py +++ b/matrix_client/errors.py @@ -12,6 +12,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + + class MatrixError(Exception): """A generic Matrix error. Specific errors will subclass this.""" pass