Skip to content

Commit efeb8df

Browse files
author
brentru
committed
Black errors
1 parent b87ca44 commit efeb8df

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

adafruit_io/adafruit_io_errors.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,30 @@
2626
* Author(s): Brent Rubell
2727
"""
2828

29+
2930
class AdafruitIO_ThrottleError(Exception):
3031
"""Adafruit IO request error class for rate-limiting"""
32+
3133
def __init__(self):
32-
super(AdafruitIO_ThrottleError, self).__init__("Number of Adafruit IO Requests exceeded! \
33-
Please try again in 30 seconds..")
34+
super(AdafruitIO_ThrottleError, self).__init__(
35+
"Number of Adafruit IO Requests exceeded! \
36+
Please try again in 30 seconds.."
37+
)
38+
3439

3540
class AdafruitIO_RequestError(Exception):
3641
"""Adafruit IO request error class"""
42+
3743
def __init__(self, response):
3844
response_content = response.json()
39-
error = response_content['error']
40-
super(AdafruitIO_RequestError, self).__init__("Adafruit IO Error {0}: {1}"
41-
.format(response.status_code, error))
45+
error = response_content["error"]
46+
super(AdafruitIO_RequestError, self).__init__(
47+
"Adafruit IO Error {0}: {1}".format(response.status_code, error)
48+
)
49+
4250

4351
class AdafruitIO_MQTTError(Exception):
4452
"""Adafruit IO MQTT error class"""
53+
4554
def __init__(self, response):
46-
super(AdafruitIO_MQTTError, self).__init__('MQTT Error: {0}'.format(response))
55+
super(AdafruitIO_MQTTError, self).__init__("MQTT Error: {0}".format(response))

0 commit comments

Comments
 (0)