[Erp5-report] r32067 jerome - /erp5/trunk/products/ERP5/Document/PDFDocument.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jan 28 16:53:29 CET 2010
Author: jerome
Date: Thu Jan 28 16:53:28 2010
New Revision: 32067
URL: http://svn.erp5.org?rev=32067&view=rev
Log:
probably a typo
Modified:
erp5/trunk/products/ERP5/Document/PDFDocument.py
Modified: erp5/trunk/products/ERP5/Document/PDFDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/PDFDocument.py?rev=32067&r1=32066&r2=32067&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/PDFDocument.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/PDFDocument.py [utf8] Thu Jan 28 16:53:28 2010
@@ -174,7 +174,7 @@
width = int(size.split(' ')[0])
height = int(size.split(' ')[2])
resolution = 72.0 * max_size / max(width, height)
- except ValueError, ZeroDivisionError:
+ except (ValueError, ZeroDivisionError):
resolution = None
for page_number in range(page_count):
src_mimetype, png_data = self.convert(
More information about the Erp5-report
mailing list