chore: add comment about ignoring OsErrors in analytics logging

This commit is contained in:
Paul Gauthier 2024-12-04 13:51:05 -08:00 committed by Paul Gauthier (aider)
parent 8fc030ba83
commit c51afc952c

View file

@ -219,6 +219,7 @@ class Analytics:
"user_id": self.user_id,
"time": int(time.time()),
}
# ai try/except OsErrors, ignore them AI!
with open(self.logfile, "a") as f:
json.dump(log_entry, f)
f.write("\n")