소스 검색

bin/ircd/meeting_bot: prevent empty messages from breaking sending loop

ghassmo 4 년 전
부모
커밋
96fbca1080
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      bin/ircd/script/meeting_bot.py

+ 1 - 2
bin/ircd/script/meeting_bot.py

@@ -34,8 +34,7 @@ async def start():
         msg = msg.decode('utf8').strip()
 
         if not msg:
-            print("Error: Receive empty msg")
-            break
+            continue
 
         command = msg.split(" ")[1]