From f4497e99e7a4956840d8c6199f37d5b393a2f9b2 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Tue, 4 Jun 2019 21:56:56 +0200 Subject: Add missing formatting placeholders in register_callback --- wee_slack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index a5733cf..dbe6446 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -3659,12 +3659,12 @@ def command_register(data, current_buffer, args): @utf8_decode def register_callback(data, command, return_code, out, err): if return_code != 0: - w.prnt("", "ERROR: problem when trying to get Slack OAuth token. Got return code {}. Err: ".format(return_code, err)) + w.prnt("", "ERROR: problem when trying to get Slack OAuth token. Got return code {}. Err: {}".format(return_code, err)) w.prnt("", "Check the network or proxy settings") return w.WEECHAT_RC_OK_EAT if len(out) <= 0: - w.prnt("", "ERROR: problem when trying to get Slack OAuth token. Got 0 length answer. Err: ".format(err)) + w.prnt("", "ERROR: problem when trying to get Slack OAuth token. Got 0 length answer. Err: {}".format(err)) w.prnt("", "Check the network or proxy settings") return w.WEECHAT_RC_OK_EAT -- cgit