summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Frieden <pfrieden@yahooinc.com>2024-11-20 15:05:41 -0600
committerMikael Magnusson <mikma@users.sourceforge.net>2025-02-28 22:21:16 +0100
commit620548703a353567487e76b73d710f8f81880ed9 (patch)
treef6995bd92691b1b4278fb50a01306f05e781b4db
parent1f3112a6dcecd0977e76564d4fc68a4f0be2db25 (diff)
Fix AttributeError(public_blob) #2462HEADmain
-rw-r--r--paramiko/auth_handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/auth_handler.py b/paramiko/auth_handler.py
index bc7f298f..9d6a6450 100644
--- a/paramiko/auth_handler.py
+++ b/paramiko/auth_handler.py
@@ -215,7 +215,7 @@ class AuthHandler:
Intended for input to or verification of, key signatures.
"""
# Use certificate contents, if available, plain pubkey otherwise
- if key.public_blob:
+ if hasattr(key, "public_blob") and key.public_blob:
return key.public_blob.key_type, key.public_blob.key_blob
else:
return key.get_name(), key