Mercurial > libervia-backend
diff src/memory/params.py @ 1624:7e749e8eefd0
core: fixed launchAction:
- getClient now raise a NotFound error if client is not available
- errors ConnectedProfileError, NotConnectedProfileError anf ProfileKeyUnknownError renamed for consistency (all profile error must prefixed by Profile)
- launchAction fixed, the case where client is not available is handled
- kept actions are actuall1y removed on launchAction
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 18 Nov 2015 11:06:24 +0100 |
parents | f4a0b12d2442 |
children | 31b96ac3eec2 |
line wrap: on
line diff
--- a/src/memory/params.py Tue Nov 17 21:29:03 2015 +0100 +++ b/src/memory/params.py Wed Nov 18 11:06:24 2015 +0100 @@ -183,7 +183,7 @@ self.host.disconnect(profile) else: log.info(_("Trying to delete a connected profile")) - return defer.fail(Failure(exceptions.ConnectedProfileError)) + return defer.fail(Failure(exceptions.ProfileConnected)) return self.storage.deleteProfile(profile) def getProfileName(self, profile_key, return_profile_keys=False): @@ -482,7 +482,7 @@ if profile not in self.params: log.error(_('Requesting synchronous param for not connected profile')) - raise exceptions.NotConnectedProfileError(profile) + raise exceptions.ProfileNotConnected(profile) if attr == "value": value = self._getParam(category, name, profile=profile)