diff --git a/src/calibre/db/cli/main.py b/src/calibre/db/cli/main.py index ee98b6e944..6d2af6b403 100644 --- a/src/calibre/db/cli/main.py +++ b/src/calibre/db/cli/main.py @@ -133,7 +133,7 @@ def read_credetials(opts): pw = getpass.getpass(_('Enter the password: ')) elif pw.startswith(''): with lopen(pw[3:-1], 'rb') as f: - pw = f.read().decode('utf-8') + pw = f.read().decode('utf-8').rstrip() return username, pw