djeuscan: pkg.metadata can fail
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
parent
3c30cae6eb
commit
89408dde2b
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user