aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-06-04 21:56:56 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-06-04 21:56:56 +0200
commitf4497e99e7a4956840d8c6199f37d5b393a2f9b2 (patch)
tree2fa9934650cc83098b4f9324080f8c6af58b6904 /wee_slack.py
parenta235e3b7d9c1f18b1c28bcf03e89577e2d9e3c08 (diff)
downloadwee-slack-f4497e99e7a4956840d8c6199f37d5b393a2f9b2.tar.gz
Add missing formatting placeholders in register_callback
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py4
1 files changed, 2 insertions, 2 deletions
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