Skip to content

Commit 8e31a24

Browse files
committed
Guard against None keypair
1 parent a9cc935 commit 8e31a24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plexapi/myplex.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,6 +2094,8 @@ def _clientIdentifier(self):
20942094
@property
20952095
def _keyID(self):
20962096
""" Returns the key ID (thumbprint) for the ED25519 keypair. """
2097+
if not self._privateKey or not self._publicKey:
2098+
return None
20972099
return hashlib.sha256(self._privateKey + self._publicKey).hexdigest()
20982100

20992101
@property

0 commit comments

Comments
 (0)