Fix None handling when no limits exist

This commit is contained in:
allegroai 2024-04-02 16:36:09 +03:00
parent 43443ccf08
commit 4387ed73b6

View File

@ -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)