added infinite loop to keep the logs running and os compatibility
This commit is contained in:
parent
825d82e5cf
commit
c13817a61a
1 changed files with 5 additions and 4 deletions
9
main.py
9
main.py
|
|
@ -46,10 +46,11 @@ def load_chat(latest_block):
|
|||
})
|
||||
loop = asyncio.new_event_loop()
|
||||
asyncio.set_event_loop(loop)
|
||||
try:
|
||||
asyncio.run(keep_chat_updated(event_filter, 2))
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
while True:
|
||||
try:
|
||||
asyncio.run(keep_chat_updated(event_filter, 2))
|
||||
except KeyboardInterrupt:
|
||||
break
|
||||
|
||||
|
||||
def output_line(log):
|
||||
|
|
|
|||
Loading…
Reference in a new issue