From ee0dcd2ec0b479ffa9895daa3fe3215602094bdb Mon Sep 17 00:00:00 2001 From: jeancf Date: Wed, 30 Nov 2022 13:46:15 +0100 Subject: [PATCH] Refined warning message --- twoot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/twoot.py b/twoot.py index 03081f6..c3e8570 100755 --- a/twoot.py +++ b/twoot.py @@ -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'):