1
0
Fork 0

make appservice more resilient

This commit is contained in:
khr 2020-04-02 23:22:34 -07:00
parent d13ab94d4b
commit 11846eda79
1 changed files with 6 additions and 2 deletions

View File

@ -223,8 +223,12 @@ class Appservice:
def receive_messages(
appservice: Appservice, msg_queue: message_queue.MessageQueue
):
while True:
try:
for message in msg_queue:
appservice.process_message(message)
except Exception as e:
LOG.exception(e)
def main():