Commit 3e9fa4ff authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: deletion of useless bloc try/except

parent d1e6e4cb
...@@ -69,7 +69,6 @@ def run(): ...@@ -69,7 +69,6 @@ def run():
"Run default configuration." "Run default configuration."
usage = "usage: %s [options] CONFIGURATION_FILE" % sys.argv[0] usage = "usage: %s [options] CONFIGURATION_FILE" % sys.argv[0]
try:
# Parse arguments # Parse arguments
config = Config() config = Config()
config.setConfig() config.setConfig()
...@@ -79,10 +78,6 @@ def run(): ...@@ -79,10 +78,6 @@ def run():
raise Exception('Do not run SlapRunner as root.') raise Exception('Do not run SlapRunner as root.')
serve(config) serve(config)
return_code = 0
except:
e = sys.exc_info()[0]
sys.exit(e)
def serve(config): def serve(config):
from werkzeug.contrib.fixers import ProxyFix from werkzeug.contrib.fixers import ProxyFix
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment