Skip to content

Commit 8dcd184

Browse files
committed
error handling
1 parent cb7b193 commit 8dcd184

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

services/api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ def getFullHistoryKeyword(history, count):
103103

104104
count = 0
105105
total = 0
106+
107+
if total == 0:
108+
return false
109+
106110
for topic in keywords_just:
107111
if topic in keywords_all:
108112
print(topic)

0 commit comments

Comments
 (0)