From 696cd9d276296ccc62ef7a9c806d5725c8b2c5e0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 28 Oct 2011 08:37:56 +0530 Subject: [PATCH] Content server: Do not show tracebacks in HTML output when not running in develop mode --- src/calibre/library/server/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/library/server/main.py b/src/calibre/library/server/main.py index 3a6f918022..8a4b13651a 100644 --- a/src/calibre/library/server/main.py +++ b/src/calibre/library/server/main.py @@ -14,7 +14,7 @@ from calibre.constants import iswindows import cherrypy def start_threaded_server(db, opts): - server = LibraryServer(db, opts, embedded=True) + server = LibraryServer(db, opts, embedded=True, show_tracebacks=False) server.thread = Thread(target=server.start) server.thread.setDaemon(True) server.thread.start() @@ -112,7 +112,7 @@ def main(args=sys.argv): if opts.with_library is None: opts.with_library = prefs['library_path'] db = LibraryDatabase2(opts.with_library) - server = LibraryServer(db, opts) + server = LibraryServer(db, opts, show_tracebacks=opts.develop) server.start() return 0