Skip to content
This repository has been archived by the owner on Jul 13, 2018. It is now read-only.

Gracefully handle reports without links #8

Open
rdmurphy opened this issue Feb 5, 2014 · 1 comment
Open

Gracefully handle reports without links #8

rdmurphy opened this issue Feb 5, 2014 · 1 comment
Labels

Comments

@rdmurphy
Copy link
Member

rdmurphy commented Feb 5, 2014

http://www.ethics.state.tx.us/php/filer.php?acct=00051772

Nothing will ever successfully pull here. You'll be able to get the filing list, but that's it. Currently having to catch the KeyError on 'CVR' to prevent things from breaking.

@rdmurphy
Copy link
Member Author

rdmurphy commented Feb 5, 2014

By the way – this is only happening on .save() calls, which triggers multiple queries on the Report model. Normally a Filing will know if it can be downloaded or not ('is_downloadable' == False), but a Filing.report should throw a more helpful error so you can address it properly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant