Skip to content

Commit

Permalink
use format
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-fang committed Jul 22, 2024
1 parent b5df41a commit 9209f72
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wandb_workspaces/utils/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@ def validate_spec_version(

if actual_version < expected_version:
raise SpecVersionError(
f"Workspace actual_version={actual_version} < expected_version={expected_version}, please visit the workspace in the web app to upgrade the workspace spec."
"Workspace actual_version={} < expected_version={}, please visit the workspace in the web app to upgrade the workspace spec.".format(actual_version, expected_version)
)

if actual_version > expected_version:
raise SpecVersionError(
f"Workspace actual_version={actual_version} > expected_version={expected_version}, please upgrade the `wandb-workspace` package to the latest version."
"Workspace actual_version={} > expected_version={}, please upgrade the `wandb-workspace` package to the latest version.".format(actual_version, expected_version)
)

return spec


def validate_url(url: str) -> str:
parsed_url = urlparse(url)

Expand Down

0 comments on commit 9209f72

Please sign in to comment.