callback("409 conflict: The sphinx is currently trying to lock the door. Try again later.")
defcould_not_close(self):
ifself.close_attempts==0:
logger.critical("StateMachine: Couldn't close door after %d tries. Going back to StateAboutToOpen."%CLOSE_REPEAT_NUMBER)
(logger.criticalifself.close_attempts==0elselogger.error)("StateMachine: Couldn't close door after %d tries. Going back to StateAboutToOpen."%CLOSE_REPEAT_NUMBER)