Fixing exception handling in get_bill_details