Add better logging for raised exceptions

This commit is contained in:
John Donaldson 2019-06-12 18:59:33 +01:00 committed by Donaldson
parent dab09db585
commit 34ee51bf84
1 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,8 @@ class MothRequestHandler(http.server.SimpleHTTPRequestHandler):
try: try:
catdir = self.server.args["puzzles_dir"].joinpath(category) catdir = self.server.args["puzzles_dir"].joinpath(category)
mb = mothballer.package(category, catdir, self.seed) mb = mothballer.package(category, catdir, self.seed)
except: except Exception as ex:
logger.exception(ex)
self.send_response(200) self.send_response(200)
self.send_header("Content-Type", "text/html; charset=\"utf-8\"") self.send_header("Content-Type", "text/html; charset=\"utf-8\"")
self.end_headers() self.end_headers()