Skip to content

Commit

Permalink
flake8 is never happy
Browse files Browse the repository at this point in the history
  • Loading branch information
nheeb committed Sep 16, 2024
1 parent 630ba71 commit 77d87d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/hermes/commands/deposit/invenio.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def __init__(self, command: HermesDepositCommand, ctx: CodeMetaContext, client=N
_log.debug(f"Tokens: {str(tokens)}")
auth_token = tokens.get("access_token", "")
_log.debug(f"Auth Token: {auth_token}")
#TODO Update the secret (github token is needed)
if not auth_token:
raise DepositionUnauthorizedError("No valid auth token given for deposition platform")
self.client = self.invenio_client_class(self.config,
Expand Down
2 changes: 1 addition & 1 deletion src/hermes/commands/init/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def configure_git_project(self):
sc.echo("Something went wrong while doing OAuth. You'll have to do it manually instead.")
if not oauth_success:
sc.echo("Now add {} to your {} under the name ZENODO_SANDBOX.".format(
f"the token ({self.tokens["zenodo"]})" if self.tokens["zenodo"] else "the token",
"the token ({})".format(self.tokens["zenodo"]) if self.tokens["zenodo"] else "the token",
sc.create_console_hyperlink(
self.folder_info.git_remote_url.replace(".git", "/settings/secrets/actions"),
"project's GitHub secrets"
Expand Down

0 comments on commit 77d87d8

Please sign in to comment.