You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running suns.py on my Outback Skybox inverter starts to retrieve good data, but then gets an exception:
[many lines...]
External Battery Voltage (V): 54 V
Total DC Current (A): 0 A
Total Power (W): 0 W
Set Operation (SetOp): 1
Set Inverter State (SetInvState): 1
Traceback (most recent call last):
File "pysunspec/scripts/suns.py", line 91, in <module>
if model.model_type.label:
AttributeError: 'NoneType' object has no attribute 'label'
If I just put a check in suns.py to continue if the object is None, I can avoid the error and the query keeps getting good data.
This may be the Skybox's fault returning data with some fields not populated, but it might be a good idea to program more defensively and put in a check in the code?
The text was updated successfully, but these errors were encountered:
Running suns.py on my Outback Skybox inverter starts to retrieve good data, but then gets an exception:
If I just put a check in suns.py to continue if the object is None, I can avoid the error and the query keeps getting good data.
This may be the Skybox's fault returning data with some fields not populated, but it might be a good idea to program more defensively and put in a check in the code?
The text was updated successfully, but these errors were encountered: