From 8c367af0ff70f7baa8b44079ca080ce75ccdf482 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Sun, 5 Jan 2020 20:47:31 +0100 Subject: [PATCH] Fix Python 2.7 errors --- fbchat/_mqtt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fbchat/_mqtt.py b/fbchat/_mqtt.py index 8504a3e..c7ce350 100644 --- a/fbchat/_mqtt.py +++ b/fbchat/_mqtt.py @@ -11,7 +11,7 @@ def generate_session_id(): @attr.s(slots=True) -class Mqtt: +class Mqtt(object): _state = attr.ib() _mqtt = attr.ib() _on_message = attr.ib() @@ -62,7 +62,7 @@ class Mqtt: OSError, paho.mqtt.client.WebsocketConnectionError, ) as e: - raise _exception.FBchatException("MQTT connection failed") from e + raise _exception.FBchatException("MQTT connection failed") # Raise error if connecting failed if rc != paho.mqtt.client.MQTT_ERR_SUCCESS: