mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-30 09:47:17 +00:00
fix: [Global] extend ungzip error catching, catch invalid compressed file
This commit is contained in:
parent
ead24038d9
commit
a92b81034b
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ if __name__ == '__main__':
|
||||||
decoded = base64.standard_b64decode(gzip64encoded)
|
decoded = base64.standard_b64decode(gzip64encoded)
|
||||||
try:
|
try:
|
||||||
new_file_content = gunzip_bytes_obj(decoded)
|
new_file_content = gunzip_bytes_obj(decoded)
|
||||||
except OSError as e:
|
except Exception as e:
|
||||||
print('{}, {}'.format(filename, e))
|
print('{}, {}'.format(filename, e))
|
||||||
publisher.warning('Global; Invalid Gzip file: {}, {}'.format(filename, e))
|
publisher.warning('Global; Invalid Gzip file: {}, {}'.format(filename, e))
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue