From 85da23878bd97e052d4efdf851e87c2adda22d61 Mon Sep 17 00:00:00 2001 From: multiflexi Date: Fri, 29 Sep 2023 13:09:23 +0200 Subject: [PATCH] Add default valie for JSON indent --- src/presenters/presenters/json_presenter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/presenters/presenters/json_presenter.py b/src/presenters/presenters/json_presenter.py index 7df12a6cc..b4a957b0a 100644 --- a/src/presenters/presenters/json_presenter.py +++ b/src/presenters/presenters/json_presenter.py @@ -37,7 +37,10 @@ def generate(self, presenter_input): Returns: _type_: _description_ """ - indent = int(presenter_input.parameter_values_map["JSON_INDENT"]) + try: + indent = int(presenter_input.parameter_values_map["JSON_INDENT"]) + except ValueError: + indent = 4 try: input_data = BasePresenter.generate_input_data(presenter_input)