From c77cc9bcf625dbab6eaee7b0f372709eac18459d Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Mon, 2 Mar 2026 16:48:44 +0530 Subject: [PATCH] fix: return error when file data didn't exist --- shuffle-tools/1.2.0/src/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shuffle-tools/1.2.0/src/app.py b/shuffle-tools/1.2.0/src/app.py index 85275cf2..d78c0a76 100644 --- a/shuffle-tools/1.2.0/src/app.py +++ b/shuffle-tools/1.2.0/src/app.py @@ -1168,7 +1168,7 @@ def get_file_value(self, filedata, category=""): "reason": "File not found", } - if "data" not in filedata: + if not filedata.get("data"): return { "success": False, "reason": "File content not found. File might be empty or not exist",