Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: anel.py declare result in front of exception
result is unbound if _receive times out with the follow exeception: mtda-mcom mtda-service[1400]: self._switch(False) mtda-mcom mtda-service[1400]: File "/usr/lib/python3.11/dist-packages/mtda/power/anel.py", line 88, in _switch mtda-mcom mtda-service[1400]: if result == "0": mtda-mcom mtda-service[1400]: ^^^^^^ mtda-mcom mtda-service[1400]: UnboundLocalError: cannot access local variable 'result' where it is not associated with a value
- Loading branch information