Commit 3e9fa4ff by Nicolas Wavrant

slaprunner: deletion of useless bloc try/except

parent d1e6e4cb
...@@ -69,20 +69,15 @@ def run(): ...@@ -69,20 +69,15 @@ 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()
if os.getuid() == 0:
if os.getuid() == 0: # avoid mistakes (mainly in development mode)
# avoid mistakes (mainly in development mode) 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 sign in to comment