Skip to content

Commit

Permalink
fix: RuntimeError: dictionary changed size during iteration
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed Mar 7, 2022
1 parent c2f7485 commit 874f92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/phatom_sets_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ def update_phantom_set(cls, phantom_set_id: str, phantoms: Iterable[sublime.Phan

@classmethod
def clear(cls) -> None:
for phantom_set_id in cls._phantom_sets.keys():
for phantom_set_id in tuple(cls._phantom_sets.keys()):
cls.delete_phantom_set(phantom_set_id)
cls._phantom_sets = {}

0 comments on commit 874f92f

Please sign in to comment.