From 17f9d7cfb21db6ebe66705ca6a182f197955b18b Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 26 Sep 2018 16:45:53 -0300 Subject: [PATCH] fix analytics encoding --- lbrynet/analytics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/analytics.py b/lbrynet/analytics.py index ae1e55120..4b7645e69 100644 --- a/lbrynet/analytics.py +++ b/lbrynet/analytics.py @@ -51,7 +51,7 @@ class Manager: def send_new_download_fail(self, download_id, name, claim_dict, e): self._send_new_download_stats("failure", download_id, name, claim_dict, { 'name': type(e).__name__ if hasattr(type(e), "__name__") else str(type(e)), - 'message': e.message, + 'message': str(e), }) def _send_new_download_stats(self, action, download_id, name, claim_dict, e=None): @@ -61,7 +61,7 @@ class Manager: 'properties': self._event_properties({ 'download_id': download_id, 'name': name, - 'sd_hash': None if not claim_dict else claim_dict.source_hash, + 'sd_hash': None if not claim_dict else claim_dict.source_hash.decode(), 'action': action, 'error': e, }),