forked from LeineLab-Public/lab-signal-bot
LabCleaningBot: use logging.debug() for receive_message() errors
This commit is contained in:
parent
a69fd2ed04
commit
509e133913
3
main.py
3
main.py
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import time
|
import time
|
||||||
import requests
|
import requests
|
||||||
|
import logging
|
||||||
import json
|
import json
|
||||||
from result import Result, Ok, Err, is_err
|
from result import Result, Ok, Err, is_err
|
||||||
from typing import List
|
from typing import List
|
||||||
@ -218,7 +219,7 @@ class LabCleaningBot:
|
|||||||
message_result = await self.api.receive_message(websocket)
|
message_result = await self.api.receive_message(websocket)
|
||||||
|
|
||||||
if is_err(message_result):
|
if is_err(message_result):
|
||||||
print(message_result.unwrap_err())
|
logging.debug(message_result.unwrap_err())
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
message = message_result.unwrap()
|
message = message_result.unwrap()
|
||||||
|
Loading…
Reference in New Issue
Block a user