diff --git a/Dockerfile b/Dockerfile index 8dd286a0..157bb87c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,6 @@ COPY mockintosh/ ./mockintosh/ RUN pip3 install . +WORKDIR /tmp + ENTRYPOINT ["mockintosh"] diff --git a/docs/Changelog.md b/docs/Changelog.md index 39d2919a..9a92014d 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -173,8 +173,6 @@ ## Other -- Better way to support GraphQL - - Nicer logging of requests, with special option to enable it. - Nicer formatted error pages for known errors, explaining the problem diff --git a/mockintosh/__init__.py b/mockintosh/__init__.py index fcd56080..4773cae6 100644 --- a/mockintosh/__init__.py +++ b/mockintosh/__init__.py @@ -247,7 +247,7 @@ def initiate(): try: load_override = _handle_oas_input(source, ['config.yaml', 'yaml'], True) logging.info("Automatically transpiled the config YAML from OpenAPI Specification.") - except ValidationError: + except (ValidationError, AttributeError): logging.debug("The input is not a valid OpenAPI Specification, defaulting to Mockintosh config.") except ResolutionError: # pragma: no cover pass diff --git a/mockintosh/res/management.html b/mockintosh/res/management.html index b14b2675..749d3a31 100644 --- a/mockintosh/res/management.html +++ b/mockintosh/res/management.html @@ -711,7 +711,6 @@