Features:
- The `download_pdf` function used by PACER reports now returns a two-tuple
containing the response object or None and a str. If there is an error,
the response object will be None and the str will have the error message. If
not, the response object will be populated and the str will be empty.
To adapt to the new version you can change old code like this:
r = report.download_pdf(...)
To something like:
r, _ = report.download_pdf(...)
If you wish, you could instead capture errors with something like:
r, msg = report.download_pdf(...)
if msg:
do_something()
Changes:
- Python 3.7 is no longer supported.
- See notes re features.