Since gnupg doesn't ship with Python, this needs to be wrapped in a try/except block. You can grep for `HAS_` in `salt/modules/` for some examples of this. Also, the documentation needs to specify that this module needs to be installed for this functionality to work.