don't fail if no scans are found

This commit is contained in:
pemontto
2019-05-10 11:31:38 +01:00
parent 3ce6065b38
commit a432491e7e
2 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,8 @@ class qualysWhisperAPI(object):
_records.append(scan_info)
self.logger.debug('Converting XML to DataFrame')
dataframes = [self.xml_parser(xml) for xml in _records]
if not dataframes:
return pd.DataFrame(columns=['id'])
except Exception as e:
self.logger.error("Couldn't process all scans: {}".format(e))