From 1a08fe3cb14d284aabdbbc50e765be680316a80d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=A8le=20Vanbaelinghem?= <daniele@nexedi.com> Date: Mon, 28 Sep 2009 13:05:07 +0000 Subject: [PATCH] Change the raise syntax with ValueError Class git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29220 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5SyncML/Signature.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/product/ERP5SyncML/Signature.py b/product/ERP5SyncML/Signature.py index d0ba64e6d8..e5c7b3fc86 100644 --- a/product/ERP5SyncML/Signature.py +++ b/product/ERP5SyncML/Signature.py @@ -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 -- 2.30.9