diff --git a/workers/securityworker.py b/workers/securityworker.py index 8b427783e..4313f1496 100644 --- a/workers/securityworker.py +++ b/workers/securityworker.py @@ -107,8 +107,9 @@ class SecurityWorker(Worker): # Handle any errors from the security scanner. if httpResponse.status_code != 201: - if 'OS and/or package manager are not supported' in jsonResponse.get('Message', ''): - # The current engine could not index this layer + message = jsonResponse.get('Message', '') + if 'OS and/or package manager are not supported' in message or 'could not extract' in message: + # The current engine could not index this layer or we tried to index a manifest. logger.warning('A warning event occurred when analyzing layer ID %s : %s', request['ID'], jsonResponse['Message'])