We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7f441f commit 2425051Copy full SHA for 2425051
packagedb/models.py
@@ -70,9 +70,9 @@ def sort_version(packages, package_type=None):
70
version_class = range_class.version_class
71
try:
72
return sorted(packages, key=lambda p: version_class(p.version))
73
- except Exception:
+ except Exception as e:
74
# Fallback to natural sort if version parsing fails
75
- pass
+ logger.warning(f"Failed to sort versions using {pkg_type} version class: {e}")
76
77
# Fallback to natural sorting
78
return natsort.natsorted(packages, key=lambda p: p.version)
0 commit comments