On 26 August 2018 at 07:59 PDT, Josiah Schwab wrote: > Your function needs to return the password. There is no return > statement here. In python, functions return None implicitly, hence the > error. P.S. Perhaps this example will be helpful for you. https://wiki.archlinux.org/index.php/OfflineIMAP#Using_GPG