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=(',',':'))}")