From 5e1e035bc27f99b334827b727da593f0a24ded48 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 10 Nov 2023 16:47:22 -0500 Subject: more progress on websockets --- backend/decky_loader/utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/decky_loader/utilities.py') diff --git a/backend/decky_loader/utilities.py b/backend/decky_loader/utilities.py index 2eea63ea..0e3e9fb0 100644 --- a/backend/decky_loader/utilities.py +++ b/backend/decky_loader/utilities.py @@ -166,7 +166,7 @@ class Utilities: style.textContent = `{style}`; }})() """, False) - + assert result is not None # TODO remove this once it has proper typings if "exceptionDetails" in result["result"]: raise result["result"]["exceptionDetails"] @@ -233,7 +233,7 @@ class Utilities: folders.append({"file": file, "filest": filest, "is_dir": True}) elif include_files: # Handle requested extensions if present - if len(include_ext) == 0 or 'all_files' in include_ext \ + if include_ext == None or len(include_ext) == 0 or 'all_files' in include_ext \ or splitext(file.name)[1].lstrip('.') in include_ext: if (is_hidden and include_hidden) or not is_hidden: files.append({"file": file, "filest": filest, "is_dir": False}) -- cgit v1.2.3