From 46f27a35b62dcc81c613e36ac7f7f90d00d52305 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Thu, 2 May 2024 13:17:28 +0000 Subject: [PATCH] Fix cpu_freq call on obscure systems --- app/classes/minecraft/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/classes/minecraft/stats.py b/app/classes/minecraft/stats.py index a3f85c05..c3474d0d 100644 --- a/app/classes/minecraft/stats.py +++ b/app/classes/minecraft/stats.py @@ -86,7 +86,7 @@ class Stats: def get_node_stats(self) -> NodeStatsReturnDict: try: cpu_freq = psutil.cpu_freq() - except (NotImplementedError, FileNotFoundError): + except (NotImplementedError, AttributeError, FileNotFoundError): cpu_freq = None if cpu_freq is None: cpu_freq = psutil._common.scpufreq(current=-1, min=-1, max=-1)