There are some reported case where windows hack causes Broken pipe
This commit is contained in:
parent
2bd535829e
commit
408e007912
@ -67,7 +67,10 @@ def check_sign(cmd, bdata, fname, GNUPG_DIRECTORY, keyserver, windows_hack=False
|
|||||||
gpg_rcode = p.returncode
|
gpg_rcode = p.returncode
|
||||||
|
|
||||||
if gpg_rcode != 0 and not windows_hack:
|
if gpg_rcode != 0 and not windows_hack:
|
||||||
|
try:
|
||||||
return check_sign(cmd, bdata.replace(b'\n', b'\r\n'), fname, GNUPG_DIRECTORY, keyserver, True) # Windows hack
|
return check_sign(cmd, bdata.replace(b'\n', b'\r\n'), fname, GNUPG_DIRECTORY, keyserver, True) # Windows hack
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
return gpg_status, gpg_output, gpg_rcode
|
return gpg_status, gpg_output, gpg_rcode
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user