Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorHimadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com>2023-06-23 07:46:30 +0000
committerGitHub <noreply@github.com>2023-06-23 09:46:30 +0200
commit27a474ed4a2ac8c2cc001f7bb969fee494636af4 (patch)
tree5d2cddf4f1be9168fd687a000dfcdc182750e726 /archinstall
parent748f03cdb1fbd28becf2d455d7137b21934f84fe (diff)
fix: define ret as Optional[str] before reassignment in get_fido2_devices (#1894)
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/disk/fido.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/disk/fido.py b/archinstall/lib/disk/fido.py
index 83b85d08..d8c8fd3c 100644
--- a/archinstall/lib/disk/fido.py
+++ b/archinstall/lib/disk/fido.py
@@ -36,9 +36,9 @@ class Fido2:
# to prevent continous reloading which will slow
# down moving the cursor in the menu
if not cls._loaded or reload:
- ret = ""
+ ret: Optional[str] = None
try:
- ret = Optional[str] = SysCommand(f"systemd-cryptenroll --fido2-device=list").decode('UTF-8')
+ ret = SysCommand("systemd-cryptenroll --fido2-device=list").decode('UTF-8')
except:
error('fido2 support is most likely not installed')
if not ret: