civisanalytics / civis-python

Civis API Python Client
BSD 3-Clause "New" or "Revised" License
34 stars 26 forks source link

Better error handling for expired files in `civis.io.file_to_dataframe` #336

Closed elsander closed 4 years ago

elsander commented 4 years ago

When reading from an expired file using civis.io.file_to_dataframe, the user gets a long traceback and the following error message: ValueError: Invalid file path or buffer object type: <class 'NoneType'>. We should catch this error and return something more informative.