[cc-commits] [CC SVN] r14814 - scicom/scholars/trunk/scicom/scholars
webmaster at creativecommons.org
webmaster at creativecommons.org
Mon Dec 6 14:49:54 EST 2010
Author: nyergler
Date: 2010-12-06 19:49:54 +0000 (Mon, 06 Dec 2010)
New Revision: 14814
Modified:
scicom/scholars/trunk/scicom/scholars/generate.py
Log:
Ignore decoding errors from input.
Modified: scicom/scholars/trunk/scicom/scholars/generate.py
===================================================================
--- scicom/scholars/trunk/scicom/scholars/generate.py 2010-12-06 19:25:27 UTC (rev 14813)
+++ scicom/scholars/trunk/scicom/scholars/generate.py 2010-12-06 19:49:54 UTC (rev 14814)
@@ -34,9 +34,12 @@
# generate the appropriate PDF
if target_agreement in agreements.handlers:
- agreements.handlers[target_agreement]() (pdf_fn, manuscript=manuscript,
- journal=journal, author=authors,
- publisher=publisher)
+ agreements.handlers[target_agreement]() (
+ pdf_fn,
+ manuscript=manuscript.decode(sys.getdefaultencoding(),'ignore'),
+ journal=journal.decode(sys.getdefaultencoding(),'ignore'),
+ author=authors.decode(sys.getdefaultencoding(),'ignore'),
+ publisher=publisher.decode(sys.getdefaultencoding(),'ignore'))
else:
# invalid target
show_error()
More information about the cc-commits
mailing list