fix: telemetry failure should not cause CLI failure (#4406)

This commit is contained in:
Aseem Bansal 2022-03-15 00:55:22 +05:30 committed by GitHub
parent ecd263b0d2
commit 1198123d78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,6 +123,7 @@ class Telemetry:
return
logger.info("Sending init Telemetry")
try:
self.mp.people_set(
self.client_id,
{
@ -131,6 +132,8 @@ class Telemetry:
"python_version": platform.python_version(),
},
)
except Exception as e:
logger.debug(f"Error reporting telemetry: {e}")
self.init_track = True
def ping(