def connectionLost(self, reason=connectionDone): self.session.commit() self.session.close() self.update_tick(dot='-')