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

slaprunner: deletion of useless bloc try/except

parent d1e6e4cb
......@@ -69,20 +69,15 @@ def run():
"Run default configuration."
usage = "usage: %s [options] CONFIGURATION_FILE" % sys.argv[0]
try:
# Parse arguments
config = Config()
config.setConfig()
if os.getuid() == 0:
# avoid mistakes (mainly in development mode)
raise Exception('Do not run SlapRunner as root.')
serve(config)
return_code = 0
except:
e = sys.exc_info()[0]
sys.exit(e)
# Parse arguments
config = Config()
config.setConfig()
if os.getuid() == 0:
# avoid mistakes (mainly in development mode)
raise Exception('Do not run SlapRunner as root.')
serve(config)
def serve(config):
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