Skip to content

Commit 6bce4fa

Browse files
mlusconshcheklein
andauthored
Fix local variable 'last_metrics' referenced before assignment (#852)
Co-authored-by: Ivan Shcheklein <[email protected]>
1 parent dac96b2 commit 6bce4fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/dvclive/monitor_system.py

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def _check_directories_to_monitor(
117117
def _monitoring_loop(self):
118118
while not self._shutdown_event.is_set():
119119
self._metrics = {}
120+
last_metrics = {}
120121
for _ in range(self._num_samples):
121122
try:
122123
last_metrics = self._get_metrics()

0 commit comments

Comments
 (0)