def __init__(self, binary_path=None, home=None, keyring=None, keyservers=None):
        kwargs = {}
        if binary_path:
            kwargs['gpgbinary'] = binary_path

        if home:
            kwargs['gnupghome'] = home

        if keyring:
            kwargs['keyring'] = keyring

        self.keyservers = keyservers

        try:
            self.gpg = gnupg.GPG(**kwargs)
        except __HOLE__ as exception:
            raise GPGException(
                'ERROR: GPG initialization error; Make sure the GPG binary is properly installed; %s' % exception
            )
        except Exception as exception:
            raise GPGException(
                'ERROR: GPG initialization error; %s' % exception
            )
dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/django_gpg/api.py/GPG.__init__