base/arch (polybar): report gpg error status in mail module
This commit is contained in:
parent
87919b1619
commit
3a81c942b4
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue