From 5a22209b8e5e0c4fdd490577ca613ce3b43ef2fb Mon Sep 17 00:00:00 2001 From: Gonzalo Rafuls Date: Wed, 1 Nov 2023 09:06:41 +0100 Subject: [PATCH] fix: blacked --- src/badfish/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/badfish/main.py b/src/badfish/main.py index cb91626..ac51379 100755 --- a/src/badfish/main.py +++ b/src/badfish/main.py @@ -650,7 +650,7 @@ async def get_power_consumed_watts(self): except ValueError: raise BadfishException("Power value outside operating range.") try: - cwc = data['PowerControl'][0]['PowerConsumedWatts'] + cwc = data["PowerControl"][0]["PowerConsumedWatts"] except IndexError: cwc = "N/A. Try to `--racreset`." self.logger.info(f"Current watts consumed: {cwc}")