Global: fixes issues raised by AI

This commit is contained in:
李通洲
2026-03-26 16:40:15 +08:00
parent 355e21c099
commit 12746a9681
5 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ def main(amdgpu_ids_path: str):
full_text = f.read()
if full_text == '':
sys.exit('Error: pci.ids file is empty')
sys.exit(f'Error: {amdgpu_ids_path} file is empty')
products = []
for line in full_text.split('\n'):
+1 -1
View File
@@ -19,7 +19,7 @@ def main(keep_vendor_list: set, pci_ids_path: str):
full_text = f.read()
if full_text == '':
sys.exit('Error: pci.ids file is empty')
sys.exit(f'Error: {pci_ids_path} file is empty')
dev_list_text = full_text[:full_text.rfind('\n\n\n')] # remove known classes
for line in dev_list_text.split('\n'):