[metadata] change default port to 1234

This commit is contained in:
Nico Schottelius 2020-01-12 00:32:17 +01:00
parent c6b7152464
commit 6d51e2a8c4

View file

@ -13,8 +13,10 @@ api = Api(app)
app.logger.handlers.clear()
DEFAULT_PORT=1234
arg_parser = argparse.ArgumentParser('metadata', add_help=False)
arg_parser.add_argument('--port', '-p', default=80, help='By default bind to port 80')
arg_parser.add_argument('--port', '-p', default=DEFAULT_PORT, help='By default bind to port {}'.format(DEFAULT_PORT))
@app.errorhandler(Exception)