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
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ def main():
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
log.info("Start listening...")
|
log.info("Start listening...")
|
||||||
mastodon.stream_user(stream, async=False)
|
mastodon.stream_user(stream)
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
log.warning('General exception caught: ' + str(error))
|
log.warning('General exception caught: ' + str(error))
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
|
|
Reference in a new issue