Skip to content

Commit d9b7b9a

Browse files
authored
Update metrics.py
1 parent 4f80d1d commit d9b7b9a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pymetrics/metrics.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,10 @@ def _get_sheet_name(column):
112112
def _safe_version_parse(version_str):
113113
if pd.isna(version_str):
114114
return np.nan
115-
116115
try:
117116
version = Version(str(version_str))
118117
except InvalidVersion:
119-
cleaned = str(version_str).rstrip('+~')
120-
try:
121-
version = Version(cleaned)
122-
except (InvalidVersion, TypeError):
123-
LOGGER.info(f'Unable to parse version: {version_str}')
124-
version = np.nan
125-
118+
version = np.nan
126119
return version
127120

128121

0 commit comments

Comments
 (0)