From 614f3d505e04798727a0cb53a268353fcb8797f6 Mon Sep 17 00:00:00 2001 From: Adam Wentz Date: Fri, 2 Nov 2018 20:55:50 -0700 Subject: [PATCH] Fix bot output when it's to a user --- rtmbot/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtmbot/core.py b/rtmbot/core.py index 9d67b3d..510272b 100755 --- a/rtmbot/core.py +++ b/rtmbot/core.py @@ -122,7 +122,7 @@ def output(self): # things that start with U are users. convert to an IM channel. if destination.startswith('U'): try: - result = json.loads(self.slack_client.api_call('im.open', user=destination)) + result = self.slack_client.api_call('im.open', user=destination) except ValueError: self._dbg("Parse error on im.open call results!") channel = self.slack_client.server.channels.find(