Merge pull request #70 from int00h5525/better-devel-exception-handling

Better devel exception handling
This commit is contained in:
Neale Pickett 2019-08-13 11:47:11 -07:00 committed by GitHub
commit 1634b39365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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:
logging.exception(ex)
self.send_response(200)
self.send_header("Content-Type", "text/html; charset=\"utf-8\"")
self.end_headers()