From 363720e90884650ea81a1496370f8d7da484c675 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Wed, 30 May 2018 22:48:37 -0700 Subject: [PATCH] matrix bridge: Add main() function to enable installation. --- zulip/integrations/matrix/matrix_bridge.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zulip/integrations/matrix/matrix_bridge.py b/zulip/integrations/matrix/matrix_bridge.py index 4b4bda8..9191d01 100644 --- a/zulip/integrations/matrix/matrix_bridge.py +++ b/zulip/integrations/matrix/matrix_bridge.py @@ -154,7 +154,7 @@ def parse_args(): help="Suppress the IRC join/leave events.") return parser.parse_args() -if __name__ == '__main__': +def main() -> None: signal.signal(signal.SIGINT, die) logging.basicConfig(level=logging.WARNING) @@ -190,3 +190,6 @@ if __name__ == '__main__': except Exception: traceback.print_exc() backoff.fail() + +if __name__ == '__main__': + main()