From 622aa4a5c8c46cdc7807bd8634f79bd1320e1089 Mon Sep 17 00:00:00 2001 From: Marius van den Beek Date: Wed, 8 Mar 2023 13:32:23 +0100 Subject: [PATCH] Use f-string for exception message Co-authored-by: Nicola Soranzo --- planemo/shed/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/planemo/shed/__init__.py b/planemo/shed/__init__.py index 0bdd28ca7..03c414c3a 100644 --- a/planemo/shed/__init__.py +++ b/planemo/shed/__init__.py @@ -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