Skip to content

Commit cf1f767

Browse files
committed
Update user_handler.py
1 parent 5fa747e commit cf1f767

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/server/user_handler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ def __call__(self, task):
5959

6060
raw = task.res.GetText()
6161
data["data"] = raw
62-
data["st"] = Str.NotFound
62+
if not raw:
63+
data["st"] = Str.NotFound
6364
except Exception as es:
6465
pass
6566
finally:
@@ -79,7 +80,8 @@ def __call__(self, task):
7980
return
8081
raw = task.res.GetText()
8182
data["data"] = raw
82-
data["st"] = Str.NotFound
83+
if not raw:
84+
data["st"] = Str.NotFound
8385
except Exception as es:
8486
pass
8587
finally:

0 commit comments

Comments
 (0)