Skip to content

Commit

Permalink
Fix: please linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Skynet committed Oct 9, 2023
1 parent 1f12bd6 commit 49908ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlt/destinations/snowflake/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ def _read_private_key(private_key: str, password: Optional[str] = None) -> bytes
backend=default_backend(),
)
except Exception:
# loading base64-encoded DER key failed -> assume it's a plain-text PEM key
# loading base64-encoded DER key failed -> assume it's a plain-text PEM key
serialization.load_pem_private_key(
private_key.encode(),
password=password.encode() if password is not None else None,
backend=default_backend(),
)

return pkey.private_bytes(
encoding=serialization.Encoding.DER,
format=serialization.PrivateFormat.PKCS8,
Expand Down

0 comments on commit 49908ea

Please sign in to comment.