Compare commits

..

No commits in common. "e6af746c174d0f6540a655aa6406008c00c88d11" and "7ebc2927a7786722afda55e14ce79e0e27a1d33d" have entirely different histories.

View File

@ -333,7 +333,6 @@ def is_time_valid(timestamp):
def login(password): def login(password):
instance = TOML['config']['mastodon_instance'] instance = TOML['config']['mastodon_instance']
logging.info('Logging in to ' + instance + ' as ' + TOML['config']['twitter_account'])
# Create Mastodon application if it does not exist yet # Create Mastodon application if it does not exist yet
if not os.path.isfile(instance + '.secret'): if not os.path.isfile(instance + '.secret'):
try: try:
@ -356,10 +355,11 @@ def login(password):
) )
mastodon.log_in( mastodon.log_in(
username=TOML['config']['mastodon_user'], username=TOML['options']['twitter_account'],
password=password, password=password,
to_file=TOML['config']['mastodon_user'] + ".secret" to_file=TOML['options']['twitter_account'] + ".secret"
) )
logging.info('Logging in to ' + instance)
except MastodonError as me: except MastodonError as me:
logging.fatal('ERROR: Login to ' + instance + ' Failed') logging.fatal('ERROR: Login to ' + instance + ' Failed')