Clean up code
This commit is contained in:
parent
009443f519
commit
b385300909
|
@ -53,7 +53,7 @@ class AdafruitIO:
|
||||||
|
|
||||||
def logError(self, result):
|
def logError(self, result):
|
||||||
status = result.status_code
|
status = result.status_code
|
||||||
reason = result.reason.decode("utf-8")
|
reason = result.reason.decode('utf-8')
|
||||||
error_message = self.getErrorMessage(result)
|
error_message = self.getErrorMessage(result)
|
||||||
|
|
||||||
logging.debug(f'Adafruit IO upload issue: {status} {reason} - "{error_message}"')
|
logging.debug(f'Adafruit IO upload issue: {status} {reason} - "{error_message}"')
|
||||||
|
|
|
@ -30,6 +30,6 @@ class Ntfy:
|
||||||
|
|
||||||
def logError(self, result):
|
def logError(self, result):
|
||||||
status = result.status_code
|
status = result.status_code
|
||||||
reason = result.reason.decode("utf-8")
|
reason = result.reason.decode('utf-8')
|
||||||
|
|
||||||
logging.debug(f'ntfy upload issue: {status} {reason}')
|
logging.debug(f'ntfy upload issue: {status} {reason}')
|
||||||
|
|
Loading…
Reference in New Issue