Skip to content

Commit

Permalink
fix #115: OrderedDict mutated during iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
dixudx committed Jun 3, 2020
1 parent 1abd42e commit 6feaa31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rtcclient/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ def _remove_long_fields(self, wk_raw_data):

match_str_list = ["rtc_cm:com.ibm.",
"calm:"]
for key in list(wk_raw_data.keys()):
keys = list(wk_raw_data.keys())
for key in keys:
for match_str in match_str_list:
if key.startswith(match_str):
try:
Expand Down

0 comments on commit 6feaa31

Please sign in to comment.