Fix bad interpolation of exception's message
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 03 Nov 2016 18:28:45 +0100
changeset 1959 e12e9e564de0
parent 1958 3e304ec4cff8
child 1960 a7ea5df9e886
Fix bad interpolation of exception's message
entities/profile_generation.py
--- a/entities/profile_generation.py	Thu Nov 03 18:28:25 2016 +0100
+++ b/entities/profile_generation.py	Thu Nov 03 18:28:45 2016 +0100
@@ -85,8 +85,8 @@
             return concept.labels[code]
         except KeyError:
             continue
-    raise RuntimeError('Concept %s has no preferred label in one of %s language'
-                       % (language, 'seda', 'en'))
+    raise RuntimeError('Concept %s has no preferred label in one of "%s", "seda" or "en" language'
+                       % (concept.eid, language))
 
 
 def serialize(value):