Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
Fix issue with GnuPG keyserver test throwing the wrong exception
Browse files Browse the repository at this point in the history
  • Loading branch information
micahflee committed Mar 16, 2017
1 parent 7dcd605 commit 8bc2af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpgsync/gnupg.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def recv_key(self, keyserver, fp, use_proxy, proxy_host, proxy_port):
args = ['--recv-keys', fp]
out,err = self._gpg(args)

if b"No keyserver available" in err or b"gpgkeys: HTTP fetch error" in out:
if b"No keyserver available" in err or b"gpg: keyserver communications error: General error" in err or b"gpgkeys: HTTP fetch error" in out:
raise InvalidKeyserver(keyserver)

if b"not found on keyserver" in err or b"keyserver receive failed: No data" in err or b"no valid OpenPGP data found" in err:
Expand Down

0 comments on commit 8bc2af3

Please sign in to comment.