From 46a5be98dfb37b11f28a096a204fa45d6136b436 Mon Sep 17 00:00:00 2001 From: nanos Date: Wed, 14 Jun 2023 09:51:56 +0100 Subject: [PATCH] Fix bug in providing access token as config where it isn't being recognised as array --- find_posts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/find_posts.py b/find_posts.py index 7ccfcdd..7fff777 100644 --- a/find_posts.py +++ b/find_posts.py @@ -851,6 +851,9 @@ if __name__ == "__main__": all_known_users = OrderedSet(list(known_followings) + list(recently_checked_users)) + if(isinstance(arguments.access_token, str)): + setattr(arguments, 'access_token', [arguments.access_token]) + for token in arguments.access_token: if arguments.reply_interval_in_hours > 0: