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

pull/497/head
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
1 changed files with 1 additions and 1 deletions

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