Skip to content

Commit

Permalink
ruff linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopamaral committed Feb 15, 2024
1 parent 2d39177 commit 77620d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion singer_sdk/helpers/_flattening.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ def flatten_record(
A flattened version of the record.
"""
if (flattened_schema is not None) or (max_level is not None):
raise InvalidFlatteningRecordsParameter("flattened_schema or max_level must be provided")
msg = "flattened_schema or max_level must be provided"
raise InvalidFlatteningRecordsParameter(msg)
max_level = max_level or 0

return _flatten_record(
Expand Down

0 comments on commit 77620d3

Please sign in to comment.