explicit not None check
This commit is contained in:
1 parent
ebaf3b6d3a
commit
c05131cd14
1 file changed
+1
-1
@@ -30,7 +30,7 @@ WORD_LIST = nltk.corpus.words.words()
|
||||
|
||||
def request_parser(request):
|
||||
data = request
|
||||
if request.get("input"):
|
||||
if request.get("input") is not None:
|
||||
data = request.get("input")
|
||||
return data
|
||||
|
||||
|
||||
Reference in new issue
Block a user