From 9323483cad1aaa9a4d2e00388808f4d0683630a5 Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Jan 08 2025 22:14:37 +0000 Subject: Update expired token exception instructions Signed-off-by: David Kaufmann --- diff --git a/fedpkg/utils.py b/fedpkg/utils.py index 0c54ba1..dbee142 100644 --- a/fedpkg/utils.py +++ b/fedpkg/utils.py @@ -154,7 +154,7 @@ def do_fork(logger, base_url, token, repo_name, namespace, cli_name): if re.search(r"Invalid or expired token", rv_error, re.IGNORECASE): base_error_msg += '\nFor invalid or expired tokens please ' \ 'set a new token in your user configuration with:' \ - '\n\n\t{0} set-distgit-token \n'.format(cli_name) + '\n\n\t{0} set-distgit-token\n'.format(cli_name) raise rpkgError(base_error_msg.format(rv_error)) return True @@ -628,7 +628,7 @@ def disable_monitoring(logger, base_url, token, repo_name, namespace, cli_name): if re.search(r"Invalid or expired token", rv_error, re.IGNORECASE): base_error_msg += '\nFor invalid or expired tokens please ' \ 'set a new token in your user configuration with:' \ - '\n\n\t{0} set-distgit-token \n'.format(cli_name) + '\n\n\t{0} set-distgit-token\n'.format(cli_name) raise rpkgError(base_error_msg.format(rv_error)) logger.info("Monitoring of the project was sucessfully disabled.")