aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-08-29 13:02:21 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-08-29 13:02:59 +0200
commit31f2970b9cee84398a8bea8bcde2b46f84bff217 (patch)
treee904e0175cef692826e58a58d1e19d8bc13742e0
parentd88bb67292b96fb327f02c960ee66ccfb5a73a81 (diff)
downloadwee-slack-31f2970b9cee84398a8bea8bcde2b46f84bff217.tar.gz
Fix argument names in format function
The argument names didn't match the names used in the template string. This bug was introduced in commit 63382c5.
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 8c06fcb..fdc7224 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -3597,7 +3597,7 @@ def process_subteam_updated(subteam_json, eventrouter, team, channel, metadata):
if config.notify_usergroup_handle_updated and current_subteam_info.handle != new_subteam_info.handle:
message = 'User group {old_handle} has updated its handle to {new_handle} in team {team}.'.format(
- name=current_subteam_info.handle, handle=new_subteam_info.handle, team=team.name)
+ old_handle=current_subteam_info.handle, new_handle=new_subteam_info.handle, team=team.name)
team.buffer_prnt(message, message=True)