Change the raise syntax with ValueError Class


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29220 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 040bbcb1
......@@ -205,7 +205,7 @@ class Signature(Folder, SyncCode, File):
elif isinstance(self.xml, str):
return self.xml
else:
raise "ErrorType the self.xml haven't good type"
raise ValueError, "the self.xml haven't good type"
else:
return None
......@@ -237,7 +237,7 @@ class Signature(Folder, SyncCode, File):
elif isinstance(self.temp_xml, str):
return self.temp_xml
else:
raise "ErrorType the self.xml haven't good type"
raise ValueError, "the self.xml haven't good type"
else:
return None
......@@ -391,7 +391,7 @@ class Signature(Folder, SyncCode, File):
if isinstance(self.partial_xml, Pdata):
return str(self.partial_xml)
else:
raise "ErrorType the self.xml haven't good type"
raise ValueError, "the self.xml haven't good type"
else:
return None
......
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