mirror of https://github.com/dirtbags/moth.git
Add better logging for raised exceptions
This commit is contained in:
parent
dab09db585
commit
34ee51bf84
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue