def process_amendments(bill_id, bill_amendments, options): amdt_list = bill_amendments['billStatus']['bill']['amendments'] if amdt_list is None: # many bills don't have amendments return for amdt in amdt_list['amendment']: amendment_info.process_amendment(amdt, bill_id, options)
def process_amendments(bill_id, bill_amendments, options): amdt_list = bill_amendments['billStatus']['bill']['amendments'] if amdt_list is None: # many bills don't have amendments return for amdt in amdt_list['amendment']: amendment_info.process_amendment(amdt, bill_id, options)