fix: [Global] extend ungzip error catching, catch invalid compressed file

This commit is contained in:
Terrtia 2020-04-29 13:42:55 +02:00
parent ead24038d9
commit a92b81034b
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -121,7 +121,7 @@ if __name__ == '__main__':
decoded = base64.standard_b64decode(gzip64encoded)
try:
new_file_content = gunzip_bytes_obj(decoded)
except OSError as e:
except Exception as e:
print('{}, {}'.format(filename, e))
publisher.warning('Global; Invalid Gzip file: {}, {}'.format(filename, e))
continue