mvandersteen / SungrowInverter

Allows to pull data from a Sungrow residential inverter via Modbus TCP
Other
28 stars 16 forks source link

Fix ZeroDivisionError issue #9

Closed Octofinger closed 1 year ago

Octofinger commented 1 year ago

Fixed a code issue where data were always set to zero in the finally clause. Now it only sets data to zero if ZeroDivisionError is caught by calc. Any other unknown exception is not caught.