Skip to content

Commit ddf7f82

Browse files
committed
add missing context argument to urlopen call
1 parent f8cdf55 commit ddf7f82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github_backup/github_backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ def get_jwt_signed_url_via_markdown_api(url, token, repo_context):
12971297
request.add_header("Content-Type", "application/json")
12981298
request.add_header("Accept", "application/vnd.github+json")
12991299

1300-
html = urlopen(request, timeout=30).read().decode("utf-8")
1300+
html = urlopen(request, context=https_ctx, timeout=30).read().decode("utf-8")
13011301

13021302
# Parse JWT-signed URL from HTML response
13031303
# Format: <img src="https://private-user-images.githubusercontent.com/...?jwt=..." ...>

0 commit comments

Comments
 (0)