From 9ea87a8022c242182cd5c230303fd3330bb4d049 Mon Sep 17 00:00:00 2001 From: Dryusdan Date: Tue, 19 Jun 2018 22:21:27 +0200 Subject: [PATCH] add python env && correct some bug --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 3094e38..e6ed6a9 100755 --- a/bot.py +++ b/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)