summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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