From 32817b721ab4cd6121c684c971b7d4e68c615cc8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 11 Mar 2021 20:35:48 +0000 Subject: [PATCH] Check that tag value is a string --- pgp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pgp.py b/pgp.py index 73a7baab8..78ee1a007 100644 --- a/pgp.py +++ b/pgp.py @@ -341,6 +341,8 @@ def _getPGPPublicKeyFromActor(handle: str, actorJson=None) -> str: continue if not tag.get('value'): continue + if not isinstance(tag['value'], str): + continue if '--BEGIN PGP PUBLIC KEY BLOCK--' in tag['value']: return tag['value'] return None