zepiaf / hydroqc

Hydro Quebec API wrapper.
MIT License
9 stars 4 forks source link

[Bug] AttributeError: 'dict' object has no attribute 'to_dict' when no next event #32

Closed mdallaire closed 2 years ago

mdallaire commented 2 years ago

I started to get the following error after this morning's critical peak. There is probably something wrong with the logic when there is no next critical event.


  File "mqtt.py", line 34, in <module>
    next_event = w.getNextEvent().to_dict()
AttributeError: 'dict' object has no attribute 'to_dict'
zepiaf commented 2 years ago

Fixed