[Collab-qa-commits] r1824 - udd/udd

Andreas Tille tille at alioth.debian.org
Fri Oct 15 07:35:49 UTC 2010


Author: tille
Date: 2010-10-15 07:35:47 +0000 (Fri, 15 Oct 2010)
New Revision: 1824

Modified:
   udd/udd/screenshot_gatherer.py
Log:
Handle descriptions containing i18n characters properly


Modified: udd/udd/screenshot_gatherer.py
===================================================================
--- udd/udd/screenshot_gatherer.py	2010-10-15 07:29:12 UTC (rev 1823)
+++ udd/udd/screenshot_gatherer.py	2010-10-15 07:35:47 UTC (rev 1824)
@@ -55,6 +55,10 @@
         res['maintainer'] = res['maintainer'].encode('utf-8')
       except AttributeError, err:
         print >>stderr, "Missing maintainer for screenshot of package %s" % res['name']
+      try:
+        res['description'] = res['description'].encode('utf-8')
+      except AttributeError, err:
+        print >>stderr, "Missing description for screenshot of package %s" % res['name']
       query = """EXECUTE screenshots_insert
                         (%(name)s, %(version)s, %(homepage)s, %(maintainer)s, %(maintainer_email)s,
                          %(description)s, %(section)s, %(url)s, %(large_image_url)s, %(small_image_url)s)"""




More information about the Collab-qa-commits mailing list