mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-22 11:00:16 +10:00
Add safe guards for logging
This commit is contained in:
@@ -64,6 +64,9 @@ class Analytics:
|
||||
return
|
||||
if not log_file.exists():
|
||||
return
|
||||
if self.constants.commit_info[0].startswith("refs/tags"):
|
||||
# Avoid being overloaded with crash reports
|
||||
return
|
||||
|
||||
commit_info = self.constants.commit_info[0].split("/")[-1] + "_" + self.constants.commit_info[1].split("T")[0] + "_" + self.constants.commit_info[2].split("/")[-1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user