Another batch of improvements:

* Prefer 'with' statements for open
* Catch proper exceptions
* Remove ex() method, there was only one use and we catch thousands of exceptions.
This commit is contained in:
Bas Stottelaar
2014-09-14 23:14:29 +02:00
parent 43efca9d04
commit 8ec1808313
8 changed files with 53 additions and 74 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ def initialize(options=None):
# Prevent time-outs
cherrypy.engine.timeout_monitor.unsubscribe()
cherrypy.tree.mount(WebInterface(), options['http_root'], config = conf)
cherrypy.tree.mount(WebInterface(), options['http_root'], config=conf)
try:
cherrypy.process.servers.check_port(options['http_host'], options['http_port'])