Skip to content

Commit

Permalink
Merge pull request #196 from conductor-sdk/fix-api-client-object-dese…
Browse files Browse the repository at this point in the history
…rialization

Return None in ApiClient deserialization only when data is None
  • Loading branch information
gardusig authored Jun 28, 2023
2 parents 9e4f25f + 01ccf67 commit 502c6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conductor/client/http/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def __deserialize(self, data, klass):
:return: object.
"""
if not data:
if data is None:
return None

if type(klass) == str:
Expand Down

0 comments on commit 502c6bd

Please sign in to comment.