add python env && correct some bug

This commit is contained in:
Dryusdan 2018-06-19 22:21:27 +02:00
parent df538524b5
commit 9ea87a8022
1 changed files with 2 additions and 2 deletions

4
bot.py
View File

@ -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)