Skip to content

Commit c77cc9b

Browse files
committed
fix: return error when file data didn't exist
1 parent e0fb386 commit c77cc9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shuffle-tools/1.2.0/src/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ def get_file_value(self, filedata, category=""):
11681168
"reason": "File not found",
11691169
}
11701170

1171-
if "data" not in filedata:
1171+
if not filedata.get("data"):
11721172
return {
11731173
"success": False,
11741174
"reason": "File content not found. File might be empty or not exist",

0 commit comments

Comments
 (0)