mirror of
https://github.com/clearml/clearml-agent
synced 2025-04-16 21:41:55 +00:00
Fix None handling when no limits exist
This commit is contained in:
parent
43443ccf08
commit
4387ed73b6
@ -500,7 +500,7 @@ class GpuFractionsHandler:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def extract_custom_limits(cls, limits: dict):
|
def extract_custom_limits(cls, limits: dict):
|
||||||
for k, v in list(limits.items() or []):
|
for k, v in list((limits or {}).items()):
|
||||||
if cls._number_re.match(k):
|
if cls._number_re.match(k):
|
||||||
limits.pop(k, None)
|
limits.pop(k, None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user