USEPA / ElectricityLCI

Creative Commons Zero v1.0 Universal
24 stars 10 forks source link

FTP errors in cems_data.py will cause the script to fail #167

Closed m-jamieson closed 1 year ago

m-jamieson commented 3 years ago

The failure occurs at line 583 or 590 when the error message is constructed. join expects a list of strings but instead receives a list of errors that can't be converted. I believe the easy fix is to change the line below to:

error_messages.append(str(e))

https://github.com/USEPA/ElectricityLCI/blob/2232c41f2cb4fd333ad59c8710aa55906e6a7ed3/electricitylci/cems_data.py#L562