summaryrefslogtreecommitdiff
path: root/backend/decky_loader/utilities.py
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2023-11-10 16:47:22 -0500
committermarios8543 <marios8543@gmail.com>2023-11-14 00:04:56 +0200
commit5e1e035bc27f99b334827b727da593f0a24ded48 (patch)
tree52e668bcf3f69829d956b8a2963521f0f0d3963c /backend/decky_loader/utilities.py
parent34d1a34b10f4386865f3c241c5ae4026d2bfd8bd (diff)
downloaddecky-loader-5e1e035bc27f99b334827b727da593f0a24ded48.tar.gz
decky-loader-5e1e035bc27f99b334827b727da593f0a24ded48.zip
more progress on websockets
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})