From 068b03c5786e88bc9c5de8e283bcab82b6855231 Mon Sep 17 00:00:00 2001 From: Homer S Date: Wed, 6 Mar 2019 22:05:56 +0100 Subject: [PATCH] altered username to lower case because of authorization troubles Logins failed because Email is handled case sensitiveley by Mastodon obviously. Added s.lower() to fix this. --- mastobot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastobot.py b/mastobot.py index a341c25..c2ae3d4 100644 --- a/mastobot.py +++ b/mastobot.py @@ -42,11 +42,11 @@ for account in transitions: # Connect with Mastodon-Account try: usercreds = mastodon.log_in( - account['masto_username'], + account['masto_username'].lower(), account['masto_passwd'] ) except: - print(account['masto_username']) + print(account['masto_username'].lower()) print("Login failed!") continue