Skip to content

Commit dc9239c

Browse files
committed
fix: resolve remaining flake8 errors
1 parent 7f78644 commit dc9239c

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

static/scripts/saxion-eduroam.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@
4040
)
4141

4242
class Installer:
43+
4344
def __init__(self, silent: bool = False, username: str = ""):
4445
self.silent = silent
4546
self.username = username
4647
self.gui_tool = self._detect_gui()
47-
48+
4849
def _detect_gui(self) -> str | None:
4950
"""Detects available GUI tools (zenity, kdialog, yad)."""
5051
if not os.environ.get("DISPLAY") and not os.environ.get("WAYLAND_DISPLAY"):
@@ -204,8 +205,10 @@ def install(self):
204205
ca_path = self.find_system_ca_bundle()
205206

206207
# 1. Remove any existing eduroam connection
207-
subprocess.run(["nmcli", "connection", "delete", CON_NAME],
208-
capture_output=True)
208+
subprocess.run(
209+
["nmcli", "connection", "delete", CON_NAME],
210+
capture_output=True
211+
)
209212

210213
# 2. Build nmcli command for new connection
211214
cmd = [
@@ -260,6 +263,7 @@ def install(self):
260263
print(res.stderr.strip() or res.stdout.strip())
261264

262265
def main():
266+
263267
parser = argparse.ArgumentParser(description="Saxion eduroam Installer")
264268
parser.add_argument("-u", "--username", help="Saxion username")
265269
parser.add_argument("--silent", action="store_true", help="Run without GUI")

0 commit comments

Comments
 (0)