Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


---

## [UnReleased] - 2025-MM-DD

### Fixed

- Fixed `compare_version` if runtime error ([#427](https://github.com/Lightning-AI/utilities/pull/427))


---

## [0.15.2] - 2025-08-06
Expand Down
2 changes: 1 addition & 1 deletion src/lightning_utilities/core/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def compare_version(package: str, op: Callable, version: str, use_base_version:
"""
try:
pkg = importlib.import_module(package)
except ImportError:
except (ImportError, RuntimeError):
return False
try:
# Use importlib.metadata to infer version
Expand Down
Loading