backend: added warning message when jabberfr workaround is used + fixed missing warning method
This commit is contained in:
parent
21dbb4473a
commit
6921df69f5
1 changed files with 4 additions and 2 deletions
|
|
@ -640,7 +640,8 @@ class Memory:
|
|||
"""Helper method to get first available entity for a service"""
|
||||
entities = self.getServerServiceEntities(category, type, profile)
|
||||
if entities == None:
|
||||
warning(_("Entities not available, maybe they haven't been asked to server yet ?"))
|
||||
warning(_("Entities (%(category)s/%(type)s) not available, maybe they haven't been asked to server yet ?") % {"category":category,
|
||||
"type":type})
|
||||
return None
|
||||
else:
|
||||
return list(entities)[0] if entities else None
|
||||
|
|
|
|||
Loading…
Reference in a new issue