Foppe Hemminga 5 年 前
コミット
e35a9e7c8b
1 ファイル変更2 行追加0 行削除
  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 = ''