changeset 2445:0199c0bd4c60

core: specify profile on NotFound exception
author Goffi <goffi@goffi.org>
date Thu, 30 Nov 2017 20:27:22 +0100
parents 30278ea1ca7c
children bfd1e9d737c4
files src/core/sat_main.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/sat_main.py	Sun Nov 19 16:51:39 2017 +0100
+++ b/src/core/sat_main.py	Thu Nov 30 20:27:22 2017 +0100
@@ -454,7 +454,7 @@
         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)