Changeset 2300
- Timestamp:
- 02/17/10 10:18:09 (5 months ago)
- Files:
-
- 1 modified
-
trunk/papywizard/hardware/gigaPanBotHardware.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/papywizard/hardware/gigaPanBotHardware.py
r2298 r2300 181 181 c = self._driver.read(1) # Get error code 182 182 # Do we need to read an additional '\r', here? 183 raise IOError("Error in command %s (err=%s)" % (repr(cmd), repr(c)))183 raise HardwareError("Error in command %s (err=%s)" % (repr(cmd), repr(c))) 184 184 elif c == '\r': 185 185 break … … 187 187 answer += c 188 188 189 except IOError:189 except (IOError, HardwareError): 190 190 Logger().exception("GigaPanBotHardware.__sendCmd") 191 191 Logger().warning("GigaPanBotHardware.__sendCmd(): axis %d can't sent command %s. Retrying..." % (self._axis, repr(cmd)))
