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
But this change is not backwards compatible. In existing code bases one users of this library might need to wrap all there calls to ChargePoint.call() inside try/except to avoid their code from breaking, like:
Currently
ChargePoint.call()
returnsNone
when the remote end returns aCallError
. That is becauseChargePoint.call()
silences theCallError
.This is problematic when one wants to act upon receiving a
CallError
.I'm not sure yet how and where to change the code so one can handle
CallError
s. The easiest way is to change the body ofChargePoint.call()
to this:But this change is not backwards compatible. In existing code bases one users of this library might need to wrap all there calls to
ChargePoint.call()
inside try/except to avoid their code from breaking, like:The text was updated successfully, but these errors were encountered: