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