Commit b52cce66 authored by nanahira's avatar nanahira

fix not exists check

parent ae5b4c9f
Pipeline #24885 passed with stages
in 2 minutes and 26 seconds
......@@ -243,7 +243,7 @@ def searchban(screen_name):
# if len(usertlb) == 0:
# return "No tweets found" # TODO: Better error handling
if len(usertl_json) == 0:
if len(usertl_json) == 0 or 'user' not in usertl_json['data']:
returnjson["profile"]["has_tweets"] = False
return returnjson
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment