Swap "--no-tty" for "--batch" (#125)
See https://bugs.debian.org/913614, especially:
PS i do encourage everyone who is automating the use of gpg to use --batch everywhere, as this forces GnuPG into a mode that is expected to be used for automation (its "API", for lack of a better term, as opposed to its "UI", which is its normal non-batch mode).