Compare commits

...

1 Commits

Author SHA1 Message Date
f76f0bcdf2 remove non standard dashes 2026-04-26 14:58:35 -07:00

View File

@ -202,7 +202,7 @@ def get_os_info() -> str:
major_edition = f"{major} {edition}"
# 2. Build number
build = os_info.BuildNumber
# 3. Install date (WMI gives an ISO8601 string)
# 3. Install date (WMI gives an ISO-8601 string)
# e.g. "20210930142300.000000+000"
install_ts = os_info.InstallDate[:14] # "20210930142300"
dt = datetime.strptime(install_ts, "%Y%m%d%H%M%S")
@ -259,7 +259,7 @@ def server_reporter():
try:
response = requests.post(url, json=data_dict)
# Raise an exception for non2xx status codes
# Raise an exception for non-2xx status codes
response.raise_for_status()
result = response.json()
except: