Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENG-1311] Investigate snaptrade python SDK bug #303

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Conversation

eddiechayes
Copy link
Contributor

@eddiechayes eddiechayes commented Oct 18, 2023

wondering if I should make the same/similar changes for async deserialize?

@notion-workspace
Copy link

@eddiechayes eddiechayes requested a review from dphuang2 October 18, 2023 22:59
Comment on lines +1077 to +1081
try:
deserialized_body, content_type = self.deserialize_body(response, content_type)
except Exception:
# Most likely content-type did not match actual body
deserialized_body = unset
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok to have such a broad try-catch?

Comment on lines +1077 to +1081
try:
deserialized_body, content_type = self.deserialize_body(response, content_type)
except Exception:
# Most likely content-type did not match actual body
deserialized_body = unset
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm actually might make more sense to put the raw body here instead

@eddiechayes eddiechayes merged commit 8df96df into main Oct 18, 2023
3 checks passed
@eddiechayes eddiechayes deleted the ENG-1311 branch October 18, 2023 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant