Skip to content

Commit

Permalink
Fix for RuntimeError: dictionary changed size during iteration (#2320)
Browse files Browse the repository at this point in the history
  • Loading branch information
moranrf authored and mistercrunch committed Mar 6, 2017
1 parent 9d8d421 commit b4a96bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def cast_form_data(form_data):
d[k] = v
if 'filters' not in d:
d = cast_filter_data(d)
for k in d.keys():
for k in list(d.keys()):
if k not in FORM_DATA_KEY_WHITELIST:
del d[k]
return d
Expand Down

0 comments on commit b4a96bd

Please sign in to comment.