Fix #1315 (Error 500 when access to the server)

This commit is contained in:
Kovid Goyal
2008-11-28 12:44:54 -08:00
parent dd6ab0957f
commit 6e0b40dac5
+2 -2
View File
@@ -134,9 +134,9 @@ class LibraryServer(object):
if opts.password:
self.config['/'] = {
'tools.digest_auth.on' : True,
'tools.digest_auth.realm' : _('Password to access your calibre library. Username is ') + opts.username.strip(),
'tools.digest_auth.realm' : (_('Password to access your calibre library. Username is ') + opts.username.strip()).encode('ascii', 'replace'),
'tools.digest_auth.users' : {opts.username.strip():opts.password.strip()},
}
}
self.is_running = False
self.exception = None