diff --git a/gnes/composer/flask.py b/gnes/composer/flask.py index fe132c11..c94a671b 100644 --- a/gnes/composer/flask.py +++ b/gnes/composer/flask.py @@ -39,6 +39,13 @@ def _create_flask_app(self): args = set_composer_parser().parse_args([]) default_html = YamlComposer(args).build_all()['html'] + @app.errorhandler(500) + def exception_handler(error): + self.logger.error('unhandled error, i better quit and restart!') + return '
docker run -d -p 0.0.0.0:80:8080/tcp gnes/gnes compose --flask', 500 + @app.route('/', methods=['GET']) def _get_homepage(): return default_html