aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_pytest/test_process_message.py1
-rw-r--r--wee_slack.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/_pytest/test_process_message.py b/_pytest/test_process_message.py
index 1375d05..0ca56cd 100644
--- a/_pytest/test_process_message.py
+++ b/_pytest/test_process_message.py
@@ -12,6 +12,7 @@ def test_process_message(slack_debug, monkeypatch, myservers, mychannels, myuser
wee_slack.users = myusers
wee_slack.message_cache = {}
wee_slack.servers[0].users = myusers
+ wee_slack.unfurl_ignore_alt_text = False
def mock_buffer_prnt(*args):
called['buffer_prnt'] += 1
diff --git a/wee_slack.py b/wee_slack.py
index 3993e9a..c8d24ee 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1585,6 +1585,7 @@ def process_message(message_json, cache=True):
channel.cache_message(message_json)
except Exception:
+ channel = channels.find(message_json["channel"])
if channel and ("text" in message_json) and message_json['text'] is not None:
channel.buffer_prnt('unknown', message_json['text'])
dbg("cannot process message {}\n{}".format(message_json, traceback.format_exc()))