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

Handle Exceptions #9

Open
innovationchef opened this issue May 27, 2018 · 3 comments
Open

Handle Exceptions #9

innovationchef opened this issue May 27, 2018 · 3 comments

Comments

@innovationchef
Copy link
Member

To handle exceptions, I have to create one and see the response. How to throw exceptions for test purposes?

@innovationchef
Copy link
Member Author

@justinccdev, the website we are currently crawling throws no error (404, 402 etc). However, to make our crawler robust, we have to write exception handlers too. Any suggestions on how we can test this? I would then be able to handle issue #8 too.

@justinccdev
Copy link
Member

You know, I'm happy simply to ignore such failures right now.

If you did want to do this and test, you could set up a local webserver (e.g. with https://docs.python.org/3.6/library/http.server.html or some other python module) and point the crawler at it.

@innovationchef
Copy link
Member Author

Well, if it's not so urgent, then I will keep this issue and issue #8 open for now. I will take them in the end and focus on other parts for now.

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