Skip to content

Commit 75c489c

Browse files
committed
Update exception syntax to pass ruff format
1 parent 4cdaf81 commit 75c489c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

archinstall/lib/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,6 @@ def _append_log(file: str, content: str) -> None:
379379

380380
if change_perm:
381381
path.chmod(stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP)
382-
except (PermissionError, FileNotFoundError):
382+
except PermissionError, FileNotFoundError:
383383
# If the file does not exist, ignore the error
384384
pass

archinstall/lib/models/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def from_wpa_cli_output(cls, list_networks: str) -> list[Self]:
218218
flags=flags,
219219
)
220220
)
221-
except (ValueError, IndexError):
221+
except ValueError, IndexError:
222222
debug('Parsing error for network output')
223223

224224
return networks

0 commit comments

Comments
 (0)