Skip to content

Commit

Permalink
fix Python script, 2
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzroe committed Jun 7, 2024
1 parent fdd285f commit 6fa8e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/process_and_convert.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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):
Expand Down

0 comments on commit 6fa8e33

Please sign in to comment.