Commit 1b952ed0 authored by Nicolas Delaby's avatar Nicolas Delaby

move explicit message from LOG to KeyError Raising

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16306 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 15808b0b
......@@ -1105,13 +1105,13 @@ class Subscription(Folder, XMLSyncUtils):
if query_method is not None:
query_list = query_method(**kw)
else:
LOG('This Subscriber %s provide no Query with id :' % (self.getTitle()), INFO, query)
raise KeyError
raise KeyError, 'This Subscriber %s provide no Query with id: %s'\
% (self.getTitle(), query)
elif callable(query): # used in the test
query_list = query(destination)
else:
LOG('This Subscriber %s provide no Query with id :' % (self.getTitle()), INFO, query)
raise KeyError
raise KeyError, 'This Subscriber %s provide no Query with id: %s'\
% (self.getTitle(), query)
return [x for x in query_list
if not getattr(x, '_conflict_resolution', False)]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment