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. |