Skip to content

Fix syntax errors#4562

Open
gravitacia wants to merge 1 commit into
archlinux:masterfrom
gravitacia:fix-syntax
Open

Fix syntax errors#4562
gravitacia wants to merge 1 commit into
archlinux:masterfrom
gravitacia:fix-syntax

Conversation

@gravitacia
Copy link
Copy Markdown

Here is a complete, pre-filled Pull Request template that you can copy and paste directly into the GitHub PR description:

- This fix issue: Fixes Python 3 syntax errors in exception handling.

## PR Description:

This PR corrects two Python syntax errors caused by unparenthesized multiple exception catching blocks, which are invalid in Python 3 and prevent successful byte-compilation or execution of the respective modules. 

Specifically:
- archinstall/lib/command.py: Parenthesized `PermissionError, FileNotFoundError` on line 382 to `(PermissionError, FileNotFoundError)`.
- archinstall/lib/models/network.py: Parenthesized `ValueError, IndexError` on line 234 to `(ValueError, IndexError)`.

These fixes restore compliance with standard Python 3 exception handling syntax.

## Tests and Checks
- [x] I have tested the code!<br>
  <!--
      Successfully compiled all Python modules using Python's compiler module (`py_compile`) recursively across the entire repository to verify that all modules now parse and byte-compile 100% cleanly without any syntactic or parsing errors.
  -->

@gravitacia gravitacia requested a review from Torxed as a code owner May 31, 2026 12:32
@correctmost
Copy link
Copy Markdown
Contributor

The parentheses are not needed in Python 3.14: https://peps.python.org/pep-0758/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants