Modifying a dict while iterating over it has always been a bug, but Python 3.8 enforces this break clean_locals in utils.py
clean_params = dict((k, v) for k, v in params.items() if v is not None and k != 'self' and k != 'session')
for k, v in cleanparams.items():
if '' in k:
newkey = k.replace('', '-')
clean_params[new_key] = v
clean_params.pop(k)
return clean_params
Modifying a dict while iterating over it has always been a bug, but Python 3.8 enforces this break clean_locals in utils.py
clean_params = dict((k, v) for k, v in params.items() if v is not None and k != 'self' and k != 'session') for k, v in cleanparams.items(): if '' in k: newkey = k.replace('', '-') clean_params[new_key] = v clean_params.pop(k) return clean_params