mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 07:18:28 +01:00
exp: raise InvalidExpRefError properly
Before it was just left instantiated, but was not raised.
This commit is contained in:
committed by
Saugat Pachhai
parent
175ffaeb22
commit
a1609cfb10
@@ -135,7 +135,7 @@ class ExpRefInfo:
|
||||
or len(parts) > 5
|
||||
or "/".join(parts[:2]) != EXPS_NAMESPACE
|
||||
):
|
||||
InvalidExpRefError(ref)
|
||||
raise InvalidExpRefError(ref)
|
||||
except ValueError:
|
||||
raise InvalidExpRefError(ref)
|
||||
baseline_sha = parts[2] + parts[3] if len(parts) >= 4 else None
|
||||
|
||||
Reference in New Issue
Block a user