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:
|
||||
catdir = self.server.args["puzzles_dir"].joinpath(category)
|
||||
mb = mothballer.package(category, catdir, self.seed)
|
||||
except:
|
||||
except Exception as ex:
|
||||
logger.exception(ex)
|
||||
self.send_response(200)
|
||||
self.send_header("Content-Type", "text/html; charset=\"utf-8\"")
|
||||
self.end_headers()
|
||||
|
|
Loading…
Reference in New Issue