base/arch (polybar): report gpg error status in mail module

This commit is contained in:
Henrik Lissner 2017-12-06 22:17:04 -05:00
parent 87919b1619
commit 3a81c942b4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -57,7 +57,7 @@ def main():
gpg = gnupg.GPG() gpg = gnupg.GPG()
gpgdata = gpg.decrypt(secrets.read_bytes()) gpgdata = gpg.decrypt(secrets.read_bytes())
if not gpgdata.ok: if not gpgdata.ok:
raise IOError("Couldn't decrypt secrets") raise IOError("Couldn't decrypt secrets: {}".format(gpgdata.status))
accounts = [line.split(':') for line in gpgdata.data.decode('utf-8').strip().split('\n')] accounts = [line.split(':') for line in gpgdata.data.decode('utf-8').strip().split('\n')]
last_total = 0 last_total = 0