Skip to content

Commit

Permalink
Fix for when infraction_idicators is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruishenl committed Oct 19, 2022
1 parent e04057a commit a83d686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invertedai/api_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def _tolist(input_data: List):
infractions=[
InfractionIndicators(*infractions)
for infractions in response["infraction_indicators"]
],
] if response["infraction_indicators"] else [],
is_inside_supported_area=response["is_inside_supported_area"],
)

Expand Down

0 comments on commit a83d686

Please sign in to comment.