Skip to content
Closed
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
3 changes: 2 additions & 1 deletion conda_build/deprecations.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import warnings
from argparse import Action
from functools import wraps
from packaging.version import InvalidVersion
from types import ModuleType
from typing import TYPE_CHECKING

Expand Down Expand Up @@ -75,7 +76,7 @@ def _version_less_than(self: Self, version: str) -> bool:
if self._version_object is None:
try:
self._version_object = parse(self._version) # type: ignore[arg-type]
except TypeError:
except (TypeError, InvalidVersion):
# TypeError: self._version could not be parsed
self._version_object = parse("0.0.0.dev0+placeholder")
return self._version_object < parse(version)
Expand Down