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

Need to throw errors when server errors out, also wrap in try: except: #6

Open
stucka opened this issue Nov 8, 2019 · 0 comments
Open

Comments

@stucka
Copy link
Member

stucka commented Nov 8, 2019

C:\data\ntsb>python fetchdocket.py 96777
https://dms.ntsb.gov/pubdms/search/hitlist.cfm?docketID=96777&StartRow=1&EndRow=3000&CurrentPage=1&order=1&sort=0&TXTSEARCHT=
Traceback (most recent call last):
File "fetchdocket.py", line 45, in
accidentnumber = pq(html)('title').text().split()[2] # Grab the third word from the title tag
IndexError: list index out of range

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

1 participant