From ba46cb87e8cd2a7d0c3db8f733762cb686d5ef46 Mon Sep 17 00:00:00 2001 From: Jarl Totland Date: Wed, 24 Jul 2024 10:43:30 +0200 Subject: [PATCH] fix: do not double encode auth when retrieving release assets --- github_backup/github_backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github_backup/github_backup.py b/github_backup/github_backup.py index ca9e88e..299a3a1 100644 --- a/github_backup/github_backup.py +++ b/github_backup/github_backup.py @@ -1259,7 +1259,7 @@ def backup_releases(args, repo_cwd, repository, repos_template, include_assets=F download_file( asset["url"], os.path.join(release_assets_cwd, asset["name"]), - get_auth(args), + get_auth(args, encode=not args.as_app), as_app=args.as_app, fine=True if args.token_fine is not None else False )