[Erp5-report] r20224 - /erp5/trunk/products/ERP5Form/ScribusUtils.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 31 14:20:00 CEST 2008


Author: fabien
Date: Mon Mar 31 14:20:00 2008
New Revision: 20224

URL: http://svn.erp5.org?rev=20224&view=rev
Log:
add Exception type to raise and error message

Modified:
    erp5/trunk/products/ERP5Form/ScribusUtils.py

Modified: erp5/trunk/products/ERP5Form/ScribusUtils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ScribusUtils.py?rev=20224&r1=20223&r2=20224&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ScribusUtils.py (original)
+++ erp5/trunk/products/ERP5Form/ScribusUtils.py Mon Mar 31 14:20:00 2008
@@ -609,7 +609,8 @@
         LOG('ScribusUtils.setBackgroundPictures :', ERROR, 'convert command'\
             'failed with the following error message : \n%s' % result[1])
         temp_image.close()
-        raise
+        raise ValueError, 'Error: convert command failed with the following'\
+                          'error message : \n%s' % result[1]
     finally:
       temp_pdf.close()
     
@@ -631,7 +632,8 @@
       LOG('ScribusUtils.setBackgroundPictures :', ERROR, 'no background '\
           'image found')
       temp_image.close()
-      raise
+      raise ValueError, 'Error: ScribusUtils.setBackgroundPictures : '\
+                        'no background'
 
     # get the real size of the first image
     # this could be usefull if the user only defined one dimention




More information about the Erp5-report mailing list