From 6fa8e338faa6351ce0203583cae8d0cbb728ce24 Mon Sep 17 00:00:00 2001 From: xyzroe Date: Fri, 7 Jun 2024 22:52:36 +0200 Subject: [PATCH] fix Python script, 2 --- .github/scripts/process_and_convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/process_and_convert.py b/.github/scripts/process_and_convert.py index 792c96b..1dec988 100644 --- a/.github/scripts/process_and_convert.py +++ b/.github/scripts/process_and_convert.py @@ -1,7 +1,7 @@ import json import os import requests -from zipfile import ZipFile +from zipfile import ZipFile, BadZipFile import re from datetime import datetime import shutil @@ -28,7 +28,7 @@ def download_and_extract(url, extract_to): os.remove(zip_path) except requests.RequestException as e: print(f"Error downloading from {url}: {e}") - except ZipFile.BadZipFile as e: + except BadZipFile as e: print(f"Error unpacking archive: {e}") def update_manifest(root, file, chip, version):