jbuehl / solaredge

SolarEdge inverter logging data capture
GNU General Public License v3.0
289 stars 60 forks source link

Error Handling needs a cast to str #122

Closed JohnOmernik closed 5 years ago

JohnOmernik commented 5 years ago

https://github.com/jbuehl/solaredge/blob/bfbb525d3f9f4a9f1b9fabd04d050c31c4ca9884/semonitor.py#L65

logger.info("Failed to parse message: "+ex)

TypeError: cannot concatenate 'str' and 'error' objects

We probably need to force ex to it's str representation str(ex) perhaps? (I am not super sure on error handling. )

jbuehl commented 5 years ago

That was broken. It is fixed.