src/eric7/MicroPython/Devices/DeviceBase.py

branch
mpy_network
changeset 9816
4aeaf6df7283
parent 9808
b68af9fd6a7a
child 9827
21803aa6c3e2
equal deleted inserted replaced
9815:6cbe3948044c 9816:4aeaf6df7283
135 @rtype dict 135 @rtype dict
136 """ 136 """
137 if key is None: 137 if key is None:
138 return copy.deepcopy(self._deviceData) 138 return copy.deepcopy(self._deviceData)
139 else: 139 else:
140 return self._deviceData[key] 140 try:
141 return self._deviceData[key]
142 except KeyError:
143 return None
141 144
142 def checkDeviceData(self, quiet=True): 145 def checkDeviceData(self, quiet=True):
143 """ 146 """
144 Public method to check the validity of the device data determined during 147 Public method to check the validity of the device data determined during
145 connecting the device. 148 connecting the device.

eric ide

mercurial