Fix syntax errors

This commit is contained in:
gravitacia 2026-05-31 12:30:14 +04:00
parent b96afcc579
commit 2b7aef3754
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -231,7 +231,7 @@ class WifiConfiguredNetwork:
flags=flags,
)
)
except ValueError, IndexError:
except (ValueError, IndexError):
debug('Parsing error for network output')
return networks