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

Andreas Tille tille at alioth.debian.org
Thu Apr 19 05:51:37 UTC 2012


Author: tille
Date: 2012-04-19 05:51:36 +0000 (Thu, 19 Apr 2012)
New Revision: 2226

Modified:
   udd/udd/bibref_gatherer.py
Log:
Catch encoding problems in upstream files


Modified: udd/udd/bibref_gatherer.py
===================================================================
--- udd/udd/bibref_gatherer.py	2012-04-18 01:32:35 UTC (rev 2225)
+++ udd/udd/bibref_gatherer.py	2012-04-19 05:51:36 UTC (rev 2226)
@@ -136,6 +136,9 @@
         except yaml.parser.ParserError, err:
           self.log.error("Syntax error in file %s: %s" % (ufile, str(err)))
           continue
+        except yaml.reader.ReaderError, err:
+          self.log.error("Encoding problem in file %s: %s" % (ufile, str(err)))
+          continue
         try:
           references=fields['Reference']
         except KeyError:




More information about the Collab-qa-commits mailing list