Skip to content

Commit

Permalink
PTFE-1481 ensure private key is bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Apr 23, 2024
1 parent 41a43dd commit 803d9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bert_e/git_host/github/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(self, login: str, password: str, email: str,
self.password = password
self.app_id = app_id
self.installation_id = installation_id
self.private_key = jwk_from_pem(private_key)
self.private_key = jwk_from_pem(private_key.encode('utf-8')) if private_key else None
self.email = email
self.org = org
self.base_url = base_url.rstrip('/')
Expand Down

0 comments on commit 803d9bc

Please sign in to comment.