mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Global: fixes issues raised by AI
This commit is contained in:
@@ -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'):
|
||||
|
||||
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user