Skip to content

Commit

Permalink
Use f-string for exception message
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Soranzo <[email protected]>
  • Loading branch information
mvdbeek and nsoranzo authored Mar 8, 2023
1 parent 80865bf commit 622aa4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions planemo/shed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,7 @@ def _find_repository_id(ctx, shed_context, name, repo_config, **kwds):
owner = _owner(ctx, repo_config, shed_context, **kwds)
matching_repository = find_repository(shed_context.tsi, owner, name)
if matching_repository is None:
message = "Failed to find repository for owner/name %s/%s"
raise Exception(message % (owner, name))
raise Exception(f"Failed to find repository for owner/name {owner}/{name}")
else:
repo_id = matching_repository["id"]
return repo_id
Expand Down

0 comments on commit 622aa4a

Please sign in to comment.