Closed swapniljariwala closed 3 years ago
sorry this needs to be -
for k in list(param.keys()):
if params[k] is None:
del(params[k])
else you'll get an error like this-
--> 265 for k in params:
266 if params[k] is None:
267 del(params[k])
RuntimeError: dictionary changed size during iteration
Should be checking on params[k] for None values rather than the k.