Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
881aa9adce | ||
|
4714be5697 |
@@ -1,5 +1,5 @@
|
|||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 1.9.2
|
current_version = 1.9.3
|
||||||
commit = True
|
commit = True
|
||||||
tag = True
|
tag = True
|
||||||
|
|
||||||
|
@@ -13,7 +13,7 @@ from ._client import Client
|
|||||||
from ._util import log # TODO: Remove this (from examples too)
|
from ._util import log # TODO: Remove this (from examples too)
|
||||||
|
|
||||||
__title__ = "fbchat"
|
__title__ = "fbchat"
|
||||||
__version__ = "1.9.2"
|
__version__ = "1.9.3"
|
||||||
__description__ = "Facebook Chat (Messenger) for Python"
|
__description__ = "Facebook Chat (Messenger) for Python"
|
||||||
|
|
||||||
__copyright__ = "Copyright 2015 - 2019 by Taehoon Kim"
|
__copyright__ = "Copyright 2015 - 2019 by Taehoon Kim"
|
||||||
|
@@ -74,8 +74,8 @@ class Mqtt(object):
|
|||||||
def _on_message_handler(self, client, userdata, message):
|
def _on_message_handler(self, client, userdata, message):
|
||||||
# Parse payload JSON
|
# Parse payload JSON
|
||||||
try:
|
try:
|
||||||
j = _util.parse_json(message.payload)
|
j = _util.parse_json(message.payload.decode("utf-8"))
|
||||||
except _exception.FBchatFacebookError:
|
except (_exception.FBchatFacebookError, UnicodeDecodeError):
|
||||||
log.exception("Failed parsing MQTT data on %s as JSON", message.topic)
|
log.exception("Failed parsing MQTT data on %s as JSON", message.topic)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user