Skip to content

Commit

Permalink
Merge pull request #167 from multiflexi/json_presenter
Browse files Browse the repository at this point in the history
Fix JSON presenter bug
  • Loading branch information
milankowww authored Sep 29, 2023
2 parents 2eac5b6 + 959e7c8 commit f710697
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/presenters/presenters/json_presenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f710697

Please sign in to comment.