change some print statements to logging.warn and use a special Exception class when a GovTrack ID lookup fails

This commit is contained in:
GovTrack.us
2013-01-06 09:41:46 -05:00
parent d816441d37
commit 63d678e722
3 changed files with 9 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ def run(options):
if options.get('pages_only', False):
return None
print "Going to fetch %i votes from congress #%s session %s" % (len(to_fetch), congress, session_year)
logging.warn("Going to fetch %i votes from congress #%s session %s" % (len(to_fetch), congress, session_year))
utils.process_set(to_fetch, vote_info.fetch_vote, options)