summaryrefslogtreecommitdiff
path: root/mod.py
diff options
context:
space:
mode:
authorMia Herkt <mia@0x0.st>2023-03-29 07:49:56 +0200
committerMia Herkt <mia@0x0.st>2023-03-29 07:49:56 +0200
commitc2b5e95903053d084ce9208a2e96226e9f5feebd (patch)
treecb2779b352de61f2ee26e2bfff7bdc720da5d051 /mod.py
parentc189c47306682bff9188156b022316472f8609ae (diff)
ModUI: Handle opening filter panel with NULL user agent
Diffstat (limited to 'mod.py')
-rwxr-xr-xmod.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod.py b/mod.py
index 4dc7107..0748a42 100755
--- a/mod.py
+++ b/mod.py
@@ -61,7 +61,7 @@ class NullptrMod(Screen):
case 2: finput.value = self.current_file.addr
case 3: finput.value = self.current_file.mime
case 4: finput.value = self.current_file.ext
- case 5: finput.value = self.current_file.ua
+ case 5: finput.value = self.current_file.ua or ""
def on_input_submitted(self, message: Input.Submitted) -> None:
self.query_one("#filter_container").display = False