Browse Source

Exception msg enhancement + use of method instead of protected attr in datasource

Yann Weber 8 years ago
parent
commit
01566ca815
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lodel/leapi/leobject.py

+ 2
- 2
lodel/leapi/leobject.py View File

@@ -265,8 +265,8 @@ class LeObject(object):
265 265
         expt_msg = "In LeAPI class '%s' " % cls.__name__
266 266
         if ds_name not in Settings.datasources._fields:
267 267
             #Checking that datasource exists
268
-            expt_msg += "Unknown or unconfigured datasource %s"
269
-            expt_msg %= (ds_name) # , cls.__name__)
268
+            expt_msg += "Unknown or unconfigured datasource %s for class %s"
269
+            expt_msg %= (ds_name, cls.__name__)
270 270
             raise SettingsError(expt_msg)
271 271
         try:
272 272
             #fetching plugin name

Loading…
Cancel
Save