Clean up code

This commit is contained in:
Mike Cifelli 2023-02-10 10:52:14 -05:00
parent 009443f519
commit b385300909
2 changed files with 2 additions and 2 deletions

View File

@ -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}"')

View File

@ -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}')