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

incorrect address not handled #13

Open
wmjones opened this issue Apr 3, 2017 · 3 comments
Open

incorrect address not handled #13

wmjones opened this issue Apr 3, 2017 · 3 comments

Comments

@wmjones
Copy link

wmjones commented Apr 3, 2017

When i run the code

print GetDeepSearchResults(zillow_data.get_deep_search_results("1600 Pennsylvania Ave NW", "20500"))

it works fine but when i run

print GetDeepSearchResults(zillow_data.get_deep_search_results("1600 Penn Ave NW", "20500"))

I get

Traceback (most recent call last):
File "main.py", line 18, in
print GetDeepSearchResults(zillow_data.get_deep_search_results("1600 Penns Ave NW", "20500"))
File "/usr/local/lib/python2.7/site-packages/pyzillow/pyzillow.py", line 31, in get_deep_search_results
return self.get_data(url, params)
File "/usr/local/lib/python2.7/site-packages/pyzillow/pyzillow.py", line 82, in get_data
raise ZillowError(int(response.findall('message/code')[0].text))
pyzillow.pyzillowerrors.ZillowError: <exception str() failed>

Is this supposed to be happening? Is there a way for the program to not crash when I put in an address that Zillow doesnt have?

@krav4
Copy link

krav4 commented Jun 13, 2017

Exactly same issue, hope it gets resolved soon...

@krav4
Copy link

krav4 commented Jun 13, 2017

It is supposed to output error code 503 but it is not supposed to crash

@krav4
Copy link

krav4 commented Jun 14, 2017

I found a solution that is somewhat satisfying. You can comment the places in the wrapper that are supposed to raise errors. Go to line 82 and comment that whole chunk, it will throw you another error, which is fixable in a same way

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