Comment 2 for bug 255099

Revision history for this message
Stefano Rivera (stefanor) wrote :

The code doesn't have any kind of timeout, I'm guessing your gpg command exited.

gpg = subprocess.Popen(gpg_command, stdin = subprocess.PIPE, stdout = subprocess.PIPE)
signed_report = gpg.communicate(mailbody.encode('utf-8'))[0].decode('utf-8')
assert gpg.returncode == 0