Browse files

AR: avoid empty committees

  • Loading branch information...
1 parent f762a4c commit c13fca11bf837a488a09d3f26b0c9b9f506d8dea @jamesturk jamesturk committed Mar 19, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 openstates/ar/committees.py
View
5 openstates/ar/committees.py
@@ -86,4 +86,7 @@ def scrape_committee(self, chamber, name, url, subcommittee=None):
self.scrape_committee(chamber, name, sub_url,
subcommittee=sub_name)
- self.save_committee(comm)
+ if not comm['members']:
+ self.warning('not saving empty committee %s' % name)
+ else:
+ self.save_committee(comm)

0 comments on commit c13fca1

Please sign in to comment.