I received this traceback
File "/usr/lib/python3/dist-packages/gpg/core.py", line 672, in key_export_minimal
if len(pk_result) > 0:
TypeError: object of type 'GPGMEError' has no len()
Looking at the code
```
665 try:
666 self.op_export(pattern, mode, data)
667 data.seek(0, os.SEEK_SET)
668 pk_result = data.read()
669 except GPGMEError as e:
670 pk_result = e
671
672 if len(pk_result) > 0:
673 result = pk_result
```
if GPGMEError does not support len() something is missing here