Fix bug in providing access token as config where it isn't being recognised as array

This commit is contained in:
nanos 2023-06-14 09:51:56 +01:00
parent 5a3db443cb
commit 46a5be98df

View file

@ -851,6 +851,9 @@ if __name__ == "__main__":
all_known_users = OrderedSet(list(known_followings) + list(recently_checked_users)) 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: for token in arguments.access_token:
if arguments.reply_interval_in_hours > 0: if arguments.reply_interval_in_hours > 0: