Prevent dict changed during iteration in video

This commit is contained in:
Boris Bobrov 2016-02-05 04:32:19 +03:00
parent 157ee14b14
commit f13225fa6d

View File

@ -110,7 +110,7 @@ def get_tags(stream_info):
dt.get_year(), dt.get_month(), dt.get_day(), dt.get_hour(),
dt.get_minute(), dt.get_second(),
dt.get_microsecond()).isoformat()
for k, v in tags.items():
for k, v in tags.copy().items():
# types below are accepted by json; others must not present
if not isinstance(v, (dict, list, six.string_types, int, float, bool,
type(None))):