Skip to content

Commit 1fef3e8

Browse files
authored
fix: web reloading caused iteration error (#3220)
1 parent 2b15b9c commit 1fef3e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmesh/core/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def reload_needed(self) -> bool:
144144
"""
145145
return any(
146146
not path.exists() or path.stat().st_mtime > initial_mtime
147-
for path, initial_mtime in self._path_mtimes.items()
147+
for path, initial_mtime in self._path_mtimes.copy().items()
148148
)
149149

150150
@abc.abstractmethod

0 commit comments

Comments
 (0)