Bump ruff target-version to Python 3.14 (#4390)
* Bump ruff target-version to Python 3.14 * Update exception syntax to pass ruff format
This commit is contained in:
parent
f37ae8b282
commit
7609a1634e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ class WifiConfiguredNetwork:
|
|||
flags=flags,
|
||||
)
|
||||
)
|
||||
except (ValueError, IndexError):
|
||||
except ValueError, IndexError:
|
||||
debug('Parsing error for network output')
|
||||
|
||||
return networks
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ score = false
|
|||
init-import = true
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py312"
|
||||
target-version = "py314"
|
||||
line-length = 160
|
||||
|
||||
[tool.ruff.format]
|
||||
|
|
|
|||
Loading…
Reference in New Issue