haasad / EcoInventDownLoader

Download, unpack and import ecoinvent into your brightway2 project in one simple step
MIT License
13 stars 6 forks source link

Handle connection timeout gracefully #8

Closed haasad closed 5 years ago

haasad commented 6 years ago

I sporadically encounter connection problems and added a timeout of 20 seconds for this. Atm this raises an error, but would be better to catch it with a try, except and show a message. Also would be nice to find out what causes the connection problems.

ReadTimeout: HTTPSConnectionPool(host='v33.ecoquery.ecoinvent.org', port=443): Read timed out. (read timeout=20)
haasad commented 5 years ago

Fixed in #10