Explorar el Código

Weird error in 'tokenrefills'

Foppe Hemminga hace 5 años
padre
commit
dffcec748b
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      cron.py

+ 3 - 0
cron.py

@@ -108,6 +108,9 @@ def cron():
                     new_properties.append(item)
             if len(new_properties) > 0:
                 for item in new_properties:
+                    if item == 'tokenrefills':
+                        # Weird error
+                        continue
                     query_third = """SELECT parent FROM properties where property = ?;"""
                     cur.execute(query_third, (item,))
                     parent = cur.fetchone()['parent']