-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
KeyError: '/status_404' #230
Comments
@MaheswarReddy1194321 sorry for the late reply I can't reproduce your problem :( But I know we had some problems with a cloner, so it doesn't work stable all the time. You should check you meta.json and try probably to re-clone again |
Maybe it's somehow related #215 |
And this #183 |
As per my observation, this issue arises in 2 cases:
The website in question (used by @MaheswarReddy1194321) comes under the 2nd case as |
-> it's giving error if we are cloning website which have error page.
becaue
def add_scheme(url):
if url[-1] == '/':
url = url.strip('/')
if yarl.URL(url).scheme:
new_url = yarl.URL(url)
err_url = yarl.URL(url + '/status_404')
else:
new_url = yarl.URL('http://' + url)
err_url = yarl.URL('http://' + url + '/status_404')
return new_url, err_url
in the above function from coner.py we are directly adding error page whithout checking whether the website has error page.
kindly, let me know if there is any mistake in my comment.
The text was updated successfully, but these errors were encountered: