Skip to content

KeyError('gps') when the GPS Receiver Recovers #412

@ATATC

Description

@ATATC

1.gps error: KeyError('gps')

Cause

In SystemFailureTracer:

        if (tag := device.tag()) in self._device_failures:
            self._device_failures[tag] -= 1
        if self._device_failures[tag] < 1:
            self._device_failures.pop(tag)
            self.on_device_recover(device)
            L.debug(f"{device} recovered")

Comparison self._device_failures[tag] < 1 may occur even when the tag is not in self._device_failures.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtodoNew task or assignment

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions