Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-fang committed Jul 22, 2024
1 parent 9209f72 commit a02d35d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wandb_workspaces/utils/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ def validate_spec_version(
) -> Dict[str, Any]:
spec_section = spec.get("section", dict())
actual_version = spec_section.get("version", -1)

print(spec)
print(spec_section)
print(actual_version)
actual_version = spec.get("version", -1)
if actual_version < expected_version:
raise SpecVersionError(
"Workspace actual_version={} < expected_version={}, please visit the workspace in the web app to upgrade the workspace spec.".format(actual_version, expected_version)
Expand Down

0 comments on commit a02d35d

Please sign in to comment.