From 89408dde2b87671d85fa2b21e2546116438dc736 Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Thu, 26 Jul 2012 21:18:31 +0200 Subject: [PATCH] djeuscan: pkg.metadata can fail Signed-off-by: Corentin Chary --- euscanwww/djeuscan/processing/scan/scan_metadata.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/euscanwww/djeuscan/processing/scan/scan_metadata.py b/euscanwww/djeuscan/processing/scan/scan_metadata.py index 54dd9c4..329c226 100644 --- a/euscanwww/djeuscan/processing/scan/scan_metadata.py +++ b/euscanwww/djeuscan/processing/scan/scan_metadata.py @@ -49,7 +49,13 @@ class ScanMetadata(object): if created: self.logger.info('+ [p] %s/%s' % (pkg.category, pkg.name)) - if not pkg.metadata: + try: + if not pkg.metadata: + return + except Exception as e: + self.logger.error( + self.style.ERROR('%s/%s: %s' % (pkg.category, pkg.name, str(e))) + ) return herds = dict(