mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-02-23 08:38:30 +00:00
Compare commits
No commits in common. "e6af746c174d0f6540a655aa6406008c00c88d11" and "7ebc2927a7786722afda55e14ce79e0e27a1d33d" have entirely different histories.
e6af746c17
...
7ebc2927a7
6
twoot.py
6
twoot.py
|
@ -333,7 +333,6 @@ def is_time_valid(timestamp):
|
|||
def login(password):
|
||||
|
||||
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
|
||||
if not os.path.isfile(instance + '.secret'):
|
||||
try:
|
||||
|
@ -356,10 +355,11 @@ def login(password):
|
|||
)
|
||||
|
||||
mastodon.log_in(
|
||||
username=TOML['config']['mastodon_user'],
|
||||
username=TOML['options']['twitter_account'],
|
||||
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:
|
||||
logging.fatal('ERROR: Login to ' + instance + ' Failed')
|
||||
|
|
Loading…
Reference in New Issue
Block a user