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:
parent
09619e6723
commit
ad973c6a2c
1 changed files with 34 additions and 16 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue