diff --git a/pylegend/core/database/sql_to_string/config.py b/pylegend/core/database/sql_to_string/config.py index ac5a2f7e..d8c73c3b 100644 --- a/pylegend/core/database/sql_to_string/config.py +++ b/pylegend/core/database/sql_to_string/config.py @@ -18,6 +18,8 @@ class SqlToStringFormat: indent_count: int def __init__(self, pretty: bool = True, indent_count: int = 0) -> None: + if indent_count < 0: + raise ValueError(f"indent_count must be non-negative, got: {indent_count}") self.pretty = pretty self.indent_count = indent_count