diff --git a/appservice/main.py b/appservice/main.py index 4a4bbcc..0624247 100644 --- a/appservice/main.py +++ b/appservice/main.py @@ -252,7 +252,7 @@ class MatrixClient(AppService): event.body = tmp event.formatted_body = ( - re.sub(".*", "", event.formatted_body) + re.sub(".*", "", event.formatted_body) if event.formatted_body else event.body )