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

EDR Interface object __repr__ function sometimes fails #42

Open
stevehadd opened this issue Mar 24, 2022 · 3 comments
Open

EDR Interface object __repr__ function sometimes fails #42

stevehadd opened this issue Mar 24, 2022 · 3 comments

Comments

@stevehadd
Copy link
Member

While testing the EDRInterface class, I tried creating one in a noteboo and got an error from inside the __repr__ function, because it was trying to display the number of collections, but self.collections was None.

@stevehadd stevehadd changed the title EDR Interface object needs a __repr__ function EDR Interface object __repr__ function sometimes fails Mar 24, 2022
@stevehadd
Copy link
Member Author

to do this, I just had a blank notebook, imported edr_explorer.interface, then created a EDRInterface() object.

@stevehadd
Copy link
Member Author

OK, this was actually just my mistake. I had a typo in the server URL. You might like nonetheless to have a more graceful fail ion this case, maybe have the repr print an error message about server not existing.

@DPeterK
Copy link
Contributor

DPeterK commented May 19, 2022

Good find 👍

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