From 2b7aef3754293e5a040a06941353eacd9b1afe01 Mon Sep 17 00:00:00 2001 From: gravitacia Date: Sun, 31 May 2026 12:30:14 +0400 Subject: [PATCH] Fix syntax errors --- archinstall/lib/command.py | 2 +- archinstall/lib/models/network.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archinstall/lib/command.py b/archinstall/lib/command.py index b0d45754d4..e34c149ba2 100644 --- a/archinstall/lib/command.py +++ b/archinstall/lib/command.py @@ -379,6 +379,6 @@ def _append_log(file: str, content: str) -> None: if change_perm: path.chmod(stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP) - except PermissionError, FileNotFoundError: + except (PermissionError, FileNotFoundError): # If the file does not exist, ignore the error pass diff --git a/archinstall/lib/models/network.py b/archinstall/lib/models/network.py index bcbd288a0e..61ff070d05 100644 --- a/archinstall/lib/models/network.py +++ b/archinstall/lib/models/network.py @@ -231,7 +231,7 @@ def from_wpa_cli_output(cls, list_networks: str) -> list[Self]: flags=flags, ) ) - except ValueError, IndexError: + except (ValueError, IndexError): debug('Parsing error for network output') return networks