comparison src/core/sat_main.py @ 2445:0199c0bd4c60

core: specify profile on NotFound exception
author Goffi <goffi@goffi.org>
date Thu, 30 Nov 2017 20:27:22 +0100
parents 81a45e7886c9
children e04c874ace79
comparison
equal deleted inserted replaced
2444:30278ea1ca7c 2445:0199c0bd4c60
452 if not profile: 452 if not profile:
453 raise exceptions.ProfileKeyUnknown 453 raise exceptions.ProfileKeyUnknown
454 try: 454 try:
455 return self.profiles[profile] 455 return self.profiles[profile]
456 except KeyError: 456 except KeyError:
457 raise exceptions.NotFound 457 raise exceptions.NotFound(profile_key)
458 458
459 def getClients(self, profile_key): 459 def getClients(self, profile_key):
460 """Convenient method to get list of clients from profile key (manage list through profile_key like C.PROF_KEY_ALL) 460 """Convenient method to get list of clients from profile key (manage list through profile_key like C.PROF_KEY_ALL)
461 461
462 @param profile_key: %(doc_profile_key)s 462 @param profile_key: %(doc_profile_key)s