summaryrefslogtreecommitdiff
path: root/backend/decky_loader/utilities.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/decky_loader/utilities.py')
-rw-r--r--backend/decky_loader/utilities.py4
1 files changed, 2 insertions, 2 deletions
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})