Commit 5932d4fb authored by Vincent Pelletier's avatar Vincent Pelletier

caucase.http: Do not risk modifying dictionary during iteration.

parent 792d49e9
...@@ -1062,7 +1062,7 @@ def manage(argv=None, stdout=sys.stdout): ...@@ -1062,7 +1062,7 @@ def manage(argv=None, stdout=sys.stdout):
db_path, db_path,
table_prefix='cas', table_prefix='cas',
) )
for identifier, ca_pair in import_ca_dict.items(): for identifier, ca_pair in list(import_ca_dict.items()):
found_from = ', '.join(ca_pair['from']) found_from = ', '.join(ca_pair['from'])
crt = ca_pair['crt'] crt = ca_pair['crt']
if crt is None: if crt is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment