From b385300909a49bbf813447f68f0031d88e4fd738 Mon Sep 17 00:00:00 2001 From: Mike Cifelli <1836280-mike-cifelli@users.noreply.gitlab.com> Date: Fri, 10 Feb 2023 10:52:14 -0500 Subject: [PATCH] Clean up code --- net/adafruit_io.py | 2 +- net/ntfy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/adafruit_io.py b/net/adafruit_io.py index 23ddff9..63950a6 100644 --- a/net/adafruit_io.py +++ b/net/adafruit_io.py @@ -53,7 +53,7 @@ class AdafruitIO: def logError(self, result): status = result.status_code - reason = result.reason.decode("utf-8") + reason = result.reason.decode('utf-8') error_message = self.getErrorMessage(result) logging.debug(f'Adafruit IO upload issue: {status} {reason} - "{error_message}"') diff --git a/net/ntfy.py b/net/ntfy.py index 6c1c628..7b43818 100644 --- a/net/ntfy.py +++ b/net/ntfy.py @@ -30,6 +30,6 @@ class Ntfy: def logError(self, result): status = result.status_code - reason = result.reason.decode("utf-8") + reason = result.reason.decode('utf-8') logging.debug(f'ntfy upload issue: {status} {reason}')