Skip to content

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

@stucka

Description

@stucka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions