core: specify profile on NotFound exception

This commit is contained in:
Goffi 2017-11-30 20:27:22 +01:00
commit 913e3712d0

View file

@ -454,7 +454,7 @@ class SAT(service.Service):
try:
return self.profiles[profile]
except KeyError:
raise exceptions.NotFound
raise exceptions.NotFound(profile_key)
def getClients(self, profile_key):
"""Convenient method to get list of clients from profile key (manage list through profile_key like C.PROF_KEY_ALL)