Fix error: dict keys changing during iteration

master
Chris Lenk 2020-01-04 14:48:49 -05:00
parent 4aaf1a0be7
commit e3c2a3a57b
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ class HashesProperty(DictionaryProperty):
def clean(self, value):
clean_dict = super(HashesProperty, self).clean(value)
for k, v in clean_dict.items():
for k, v in copy.deepcopy(clean_dict).items():
key = k.upper().replace('-', '')
if key in HASHES_REGEX:
vocab_key = HASHES_REGEX[key][1]