You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should raise ValueError similar to what we do with empty string.
fromunivers.version_rangeimportVersionRange>>>VersionRange.from_string("")
Traceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"../univers/src/univers/version_range.py", line115, infrom_stringraiseValueError(f"{vers!r} must start with the 'vers:' URI scheme.")
ValueError: ''muststartwiththe'vers:'URIscheme.
The text was updated successfully, but these errors were encountered:
Currently, we're not correctly handling the cases where the input string is
None
We should raise
ValueError
similar to what we do with empty string.The text was updated successfully, but these errors were encountered: