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