Skip to content

Commit

Permalink
use TypeError instead of generic exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Divine committed Sep 21, 2023
1 parent adc8b65 commit aa6762e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysdk/pysdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def format_fields_nested(

return output
else:
raise Exception(
raise TypeError(
f"expect object of type Union[list, dict] but got {type(object)}"
)

Expand Down

0 comments on commit aa6762e

Please sign in to comment.