diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-27 23:15:14 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-27 23:15:49 +0100 |
commit | 1a1b8950b06a9c146caf85b4ae6aca14a58cc789 (patch) | |
tree | 4ba554d2adabb47cbe44b864d2cb2259026610e5 /slack | |
parent | 430ca9818dfc2f2ffb23b856e8d97187f411c5d1 (diff) | |
download | wee-slack-1a1b8950b06a9c146caf85b4ae6aca14a58cc789.tar.gz |
Print error message from reply command if id/index isn't found
Diffstat (limited to 'slack')
-rw-r--r-- | slack/commands.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/slack/commands.py b/slack/commands.py index 76125a2..4bf477a 100644 --- a/slack/commands.py +++ b/slack/commands.py @@ -419,6 +419,9 @@ async def command_slack_reply(buffer: str, args: List[str], options: Options): ) return thread_ts = slack_buffer.ts_from_hash_or_index(split_args[0]) + if thread_ts is None: + print_message_not_found_error(split_args[0]) + return await slack_buffer.post_message(split_args[1], thread_ts, broadcast) |