diff --git a/offlineimap/ui/Curses.py b/offlineimap/ui/Curses.py index 03f4d26..dfad308 100644 --- a/offlineimap/ui/Curses.py +++ b/offlineimap/ui/Curses.py @@ -583,6 +583,10 @@ class Blinkenlights(UIBase, CursesUtil): finally: self.unlock() self.inputhandler.input_release() + + # We need a str password + if isinstance(password, bytes): + return password.decode(encoding='utf-8') return password def setupwindows(self, resize=False):