From 97c6c549c1f9d52b062f0f064835b116ad390c0c Mon Sep 17 00:00:00 2001 From: clore Date: Fri, 10 May 2024 00:54:19 +0000 Subject: [PATCH] fix --- clore_hosting/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clore_hosting/main.py b/clore_hosting/main.py index 8eba76c..ac79f84 100644 --- a/clore_hosting/main.py +++ b/clore_hosting/main.py @@ -488,7 +488,7 @@ class CloreClient: "set_gpu_info":self.gpu_oc_specs, "xorg_valid": True }) - if oc_conf[0] and len(oc_conf[2].keys())>0 and oc_apply_allowed: + if oc_conf[0] and type(oc_conf[2])==dict and oc_apply_allowed: if utils.normalize_rule(self.last_applied_oc)!=utils.normalize_rule(oc_conf[2]) or (self.last_oc_apply_time < utils.unix_timestamp()-300): self.last_oc_apply_time = utils.unix_timestamp() log.debug(f"Applying OC | {json.dumps(oc_conf[2], separators=(',',':'))}")