Jared 2 years ago
parent
commit
ae361c3487
1 changed files with 4 additions and 1 deletions
  1. 4 1
      gtrends/process_gtrend.py

+ 4 - 1
gtrends/process_gtrend.py

@@ -43,7 +43,10 @@ for l in lst:
                     print(kw['query'])
                     alldict[kw['query']]=1
     for k,v in alldict.items():
-        table.insert({'original':fullkw,'kw':k})
+        try:
+            table.insert({'original':fullkw,'kw':k})
+        except:
+            print('except')
         print(k)