Skip to content

Commit

Permalink
Fix "dictionary changed size during iteration" in upgrade hooks loop
Browse files Browse the repository at this point in the history
Introduced by metabrainz@92b0903
  • Loading branch information
zas committed Apr 3, 2024
1 parent 2daf6f2 commit 33623cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picard/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def run_upgrade_hooks(self, hooks):
PICARD_VERSION
))
return
for version in hooks:
for version in list(hooks):
hook = hooks[version]
if self._version < version:
try:
Expand Down

0 comments on commit 33623cc

Please sign in to comment.