From 5264aea802f19da07b8252a405cbe4ab1b2a0a8f Mon Sep 17 00:00:00 2001 From: pemontto Date: Thu, 25 Apr 2019 11:31:04 +0100 Subject: [PATCH] Fix qualys web unicode issues --- vulnwhisp/frameworks/qualys_web.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vulnwhisp/frameworks/qualys_web.py b/vulnwhisp/frameworks/qualys_web.py index b52f0ee..d0b11b2 100644 --- a/vulnwhisp/frameworks/qualys_web.py +++ b/vulnwhisp/frameworks/qualys_web.py @@ -110,7 +110,6 @@ class qualysWhisperAPI(object): _records = [] try: total = int(self.get_was_scan_count(status=status)) - self.logger.error('Already have WAS scan count') self.logger.info('Retrieving information for {} scans'.format(total)) for i in range(0, total): if i % limit == 0: @@ -445,7 +444,7 @@ class qualysScanReport: return merged_df def download_file(self, path='', file_id=None): - report = self.qw.download_report(file_id) + report = self.qw.download_report(file_id).encode('utf-8') filename = path + str(file_id) + '.csv' file_out = open(filename, 'w') for line in report.splitlines(): @@ -478,4 +477,4 @@ class qualysScanReport: def transform_values(self, df): self.logger.debug('Transforming values') df.fillna('', inplace=True) - return df \ No newline at end of file + return df