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

observable_add doesn't raise any exception and just returns None #21

Open
sp35 opened this issue Aug 12, 2021 · 1 comment
Open

observable_add doesn't raise any exception and just returns None #21

sp35 opened this issue Aug 12, 2021 · 1 comment

Comments

@sp35
Copy link

sp35 commented Aug 12, 2021

result = self.api.observable_add(value=obs_value)

This would just return None and there is no way I can catch the exception Couldn't guess observable type as it's just logged.

@eshaan7
Copy link

eshaan7 commented Aug 12, 2021

Reference code:

logging.error("An error occurred (%s): %s", resp.status_code, url)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants