diff --git a/product/ERP5Form/ScribusUtils.py b/product/ERP5Form/ScribusUtils.py index 6493c7f5f328a3edc6dd96ef0cc32fd84fb7b905..91e5210f8c46ce5e575d55e53f47385d1e588c02 100644 --- a/product/ERP5Form/ScribusUtils.py +++ b/product/ERP5Form/ScribusUtils.py @@ -609,7 +609,8 @@ class ManageFiles: 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 @@ class ManageFiles: 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