Foppe Hemminga 5 éve
szülő
commit
e35a9e7c8b
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      cron.py

+ 2 - 0
cron.py

@@ -95,6 +95,8 @@ def cron():
             pprint((row['maintainer'], row['player'], property,))
             cur.execute(query_second, (row['maintainer'], row['player'], property,))
             p_row = cur.fetchone()
+            if not p_row:
+                continue
             print(f"property: '{property}' parent: '{p_row['parent']}' -> value: '{p_row['value']}'")
             retrieved_properties.append(property)
             new_value = ''