Fix syntax errors
This commit is contained in:
parent
b96afcc579
commit
2b7aef3754
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ class WifiConfiguredNetwork:
|
|||
flags=flags,
|
||||
)
|
||||
)
|
||||
except ValueError, IndexError:
|
||||
except (ValueError, IndexError):
|
||||
debug('Parsing error for network output')
|
||||
|
||||
return networks
|
||||
|
|
|
|||
Loading…
Reference in New Issue