From a92b81034b4408bd11703528fabf3170981d119f Mon Sep 17 00:00:00 2001 From: Terrtia Date: Wed, 29 Apr 2020 13:42:55 +0200 Subject: [PATCH] fix: [Global] extend ungzip error catching, catch invalid compressed file --- bin/Global.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/Global.py b/bin/Global.py index 41781a8e..5244ecc8 100755 --- a/bin/Global.py +++ b/bin/Global.py @@ -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