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
This commit is contained in:
Goffi 2015-11-18 11:06:24 +01:00
commit ad973c6a2c

View file

@ -124,7 +124,7 @@ class FakeSAT(object):
@return: client or None if it doesn't exist"""
profile = self.memory.getProfileName(profile_key)
if not profile:
raise exceptions.ProfileKeyUnknownError
raise exceptions.ProfileKeyUnknown
if profile not in self.profiles:
self.profiles[profile] = FakeClient(self, profile)
return self.profiles[profile]