mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 00:56:53 +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
|
||||
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):
|
||||
limits.pop(k, None)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user