Skip to content

Commit

Permalink
Merge pull request #157 from USEPA/hotfix_156
Browse files Browse the repository at this point in the history
update xml element tag resolves #156
  • Loading branch information
bl-young authored Apr 1, 2024
2 parents 36139f9 + 28ea74c commit d96eccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stewi/GHGRP.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def get_row_count(table, report_year):
try:
count_request = make_url_request(count_url)
count_xml = minidom.parseString(count_request.text)
table_count = count_xml.getElementsByTagName('TOTALQUERYRESULTS')
table_count = count_xml.getElementsByTagName('REQUESTRECORDCOUNT')
table_count = int(table_count[0].firstChild.nodeValue)
except IndexError as e:
raise Exception(f'error accessing table count for {table}') from e
Expand Down

0 comments on commit d96eccc

Please sign in to comment.