diff --git a/fiftystates/backend/legislators.py b/fiftystates/backend/legislators.py index 4edeb0bd26..37e5d715ac 100644 --- a/fiftystates/backend/legislators.py +++ b/fiftystates/backend/legislators.py @@ -37,7 +37,7 @@ def import_legislators(state, data_dir): paths = glob.glob(pattern) for path in paths: with open(path) as f: - import_legislator(json.load(data)) + import_legislator(json.load(f)) print 'imported %s legislator files' % len(paths)