mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-23 08:06:46 +00:00
PICARD-1318: Fix dictionary changed size during iteration error
It happens when looking up a track with script $set(newartists, %artists%)
This commit is contained in:
@@ -333,7 +333,7 @@ class Metadata(dict):
|
||||
def apply_func(self, func):
|
||||
for key, values in self.rawitems():
|
||||
if key not in PRESERVED_TAGS:
|
||||
self[key] = [func(value) for value in values]
|
||||
super().__setitem__(key, [func(value) for value in values])
|
||||
|
||||
def strip_whitespace(self):
|
||||
"""Strip leading/trailing whitespace.
|
||||
|
||||
Reference in New Issue
Block a user