Skip to content

Commit 78c7aa3

Browse files
Update trinity/utils/monitor.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 3f9f0e3 commit 78c7aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trinity/utils/monitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ def close(self) -> None:
346346
else:
347347
# Fallback to global finish
348348
swanlab.finish()
349-
except Exception:
350-
pass
349+
except Exception as e:
350+
self.console_logger.warning(f"Failed to close SwanlabMonitor: {e}")
351351

352352
@classmethod
353353
def default_args(cls) -> Dict:

0 commit comments

Comments
 (0)