mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-30 23:41:13 +00:00
Refined warning message
This commit is contained in:
parent
2015e43e23
commit
ee0dcd2ec0
6
twoot.py
6
twoot.py
|
@ -508,9 +508,9 @@ def login(password):
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
if os.path.isfile(TOML['config']['mastodon_user'] + '.secret'):
|
if os.path.isfile(TOML['config']['mastodon_user'] + '.secret'):
|
||||||
logging.warning("""You successfully logged in using a password. An access token
|
logging.warning('You successfully logged in using a password and an access token \
|
||||||
has been saved therefore the password can be omitted from the
|
has been saved. The password can therefore be omitted from the \
|
||||||
command-line in future invocations""")
|
command-line in future invocations')
|
||||||
else: # No password provided, login with token
|
else: # No password provided, login with token
|
||||||
# Using token in existing .secret file
|
# Using token in existing .secret file
|
||||||
if os.path.isfile(TOML['config']['mastodon_user'] + '.secret'):
|
if os.path.isfile(TOML['config']['mastodon_user'] + '.secret'):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user