Check that tag value is a string

main
Bob Mottram 2021-03-11 20:35:48 +00:00
parent 43e98aba6d
commit 32817b721a
1 changed files with 2 additions and 0 deletions

2
pgp.py
View File

@ -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