[Erp5-report] r29220 - /erp5/trunk/products/ERP5SyncML/Signature.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Sep 28 15:05:08 CEST 2009
Author: daniele
Date: Mon Sep 28 15:05:07 2009
New Revision: 29220
URL: http://svn.erp5.org?rev=29220&view=rev
Log:
Change the raise syntax with ValueError Class
Modified:
erp5/trunk/products/ERP5SyncML/Signature.py
Modified: erp5/trunk/products/ERP5SyncML/Signature.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/Signature.py?rev=29220&r1=29219&r2=29220&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/Signature.py [utf8] (original)
+++ erp5/trunk/products/ERP5SyncML/Signature.py [utf8] Mon Sep 28 15:05:07 2009
@@ -205,7 +205,7 @@
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 @@
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 @@
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
More information about the Erp5-report
mailing list