lephisto / tesla-apiscraper

API Scraper for pulling Vehicle Statistics from the Tesla Owner API into an InfluxDB + Grafana Dashboards
GNU Lesser General Public License v3.0
365 stars 102 forks source link

Patch to prevent crashes when hostname lookups fail #47

Closed ltfiend closed 5 years ago

ltfiend commented 5 years ago

Very basic patch to wrap refresh_vehicle in a try. This is to prevent the occasionally crash when urllib fails to resolve a hostname. See issue 45.