diff options
Diffstat (limited to 'beinc_weechat.py')
| -rw-r--r-- | beinc_weechat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/beinc_weechat.py b/beinc_weechat.py index 982e8f0..a897a7d 100644 --- a/beinc_weechat.py +++ b/beinc_weechat.py | |||
| @@ -341,10 +341,10 @@ class WeechatTarget(object): | |||
| 341 | ('password', self.__password), | 341 | ('password', self.__password), |
| 342 | ('title', title), | 342 | ('title', title), |
| 343 | ('message', message) | 343 | ('message', message) |
| 344 | )), | 344 | )).encode('utf-8'), |
| 345 | timeout=self.__socket_timeout, | 345 | timeout=self.__socket_timeout, |
| 346 | context=self.__context) | 346 | context=self.__context) |
| 347 | response_dict = json.loads(response.read()) | 347 | response_dict = json.loads(response.read().decode('utf-8')) |
| 348 | if response.code != 200: | 348 | if response.code != 200: |
| 349 | raise socket.error(response_dict.get('message', '')) | 349 | raise socket.error(response_dict.get('message', '')) |
| 350 | if self.__debug: | 350 | if self.__debug: |
