mirror of https://github.com/dirtbags/moth.git
Merge pull request #70 from int00h5525/better-devel-exception-handling
Better devel exception handling
This commit is contained in:
commit
1634b39365
|
@ -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:
|
||||||
|
logging.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