From 1466531d48d8d4e266062d1587da02345761195d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Wed, 14 Feb 2018 14:53:07 +0100 Subject: [PATCH] Drop the dot in error event messages. Synapse has incosistent error messages, some contain a full stop while some don't, to avoid double dots remove our dot. --- matrix/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/events.py b/matrix/events.py index b4ee6fc..eae4d37 100644 --- a/matrix/events.py +++ b/matrix/events.py @@ -63,7 +63,7 @@ class MatrixErrorEvent(MatrixEvent): @classmethod def from_dict(cls, server, error_prefix, fatal, parsed_dict): try: - message = "{prefix}: {error}.".format( + message = "{prefix}: {error}".format( prefix=error_prefix, error=parsed_dict["error"]) return cls(