ElectionDataAnalysis / electiondata

Tools for consolidation and analysis of raw election results from the most reliable sources -- the election agencies themselves.
Other
20 stars 5 forks source link

Names of jurisdictions without major subdivisions are not reported when Analyzer fails #754

Open sfsinger19103 opened 2 years ago

sfsinger19103 commented 2 years ago

The problem is this line of code in electiondata/__init__.py, which does not include the list of bad jurisdictions in the error message.

    if bad_jurisdictions:
        err_string = f"No Analyzer created, because no major subdivisions were found for these jurisdictions:\n"
        f"{sorted(list(bad_jurisdictions))}"