Skip to content
Snippets Groups Projects
Commit 95ef9e24 authored by jkerdreu's avatar jkerdreu
Browse files

Drop TypeError in favor of MessageError

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2001 b32b6428-25c9-4566-ad07-03861ab6144f
parent 5f0a824b
No related branches found
No related tags found
No related merge requests found
......@@ -230,7 +230,7 @@ class Message(object):
@targets.setter
def targets(self, values):
if not isinstance(values, list):
raise TypeError("Expected a list for targetsList, got %s" % (type(values),))
raise MessageError("Expected a list for targetsList, got %s" % (type(values),))
for val in values:
if not tools.is_valid_addr(val):
raise MessageError("Bad target addr: %s" % val)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment