Refined warning message

This commit is contained in:
jeancf 2022-11-30 13:46:15 +01:00
parent 2015e43e23
commit ee0dcd2ec0

View File

@ -508,9 +508,9 @@ def login(password):
exit(-1)
if os.path.isfile(TOML['config']['mastodon_user'] + '.secret'):
logging.warning("""You successfully logged in using a password. An access token
has been saved therefore the password can be omitted from the
command-line in future invocations""")
logging.warning('You successfully logged in using a password and an access token \
has been saved. The password can therefore be omitted from the \
command-line in future invocations')
else: # No password provided, login with token
# Using token in existing .secret file
if os.path.isfile(TOML['config']['mastodon_user'] + '.secret'):