mirror of
https://github.com/unitedstates/congress.git
synced 2025-12-25 01:00:04 -05:00
change some print statements to logging.warn and use a special Exception class when a GovTrack ID lookup fails
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user