code: def _register_key(fingerprint, gpg):
      
  
      for private_key in gpg.list_keys(True):
          try:
              if str(fingerprint) == private_key['fingerprint']:
                  config["gpg_key_fingerprint"] = \
                      repr(private_key['fingerprint'])
          except KeyError:
              pass
docs: Registers key in config