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)