add python env && correct some bug
This commit is contained in:
parent
df538524b5
commit
9ea87a8022
4
bot.py
4
bot.py
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3
|
||||
#!/usr/bin/env python3
|
||||
# coding: utf-8
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
@ -77,7 +77,7 @@ def main():
|
|||
while True:
|
||||
try:
|
||||
log.info("Start listening...")
|
||||
mastodon.stream_user(stream, async=False)
|
||||
mastodon.stream_user(stream)
|
||||
except Exception as error:
|
||||
log.warning('General exception caught: ' + str(error))
|
||||
time.sleep(0.5)
|
||||
|
|
Reference in a new issue