diff options
author | Théo de la Hogue | 2024-09-10 17:03:07 +0200 |
---|---|---|
committer | Théo de la Hogue | 2024-09-10 17:03:07 +0200 |
commit | baec212c1527259dc3bd0e0ea961e2b8154d4825 (patch) | |
tree | f44cc260f7f80c3386561d43f741590f13fcc86d /src | |
parent | 628297f2420886eddc5748763e3e14ab9406a5d2 (diff) | |
download | argaze-baec212c1527259dc3bd0e0ea961e2b8154d4825.zip argaze-baec212c1527259dc3bd0e0ea961e2b8154d4825.tar.gz argaze-baec212c1527259dc3bd0e0ea961e2b8154d4825.tar.bz2 argaze-baec212c1527259dc3bd0e0ea961e2b8154d4825.tar.xz |
Catching error in livedata.json.gz file parsing.
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/utils/contexts/TobiiProGlasses2.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/argaze/utils/contexts/TobiiProGlasses2.py b/src/argaze/utils/contexts/TobiiProGlasses2.py index fbc9d1e..081e225 100644 --- a/src/argaze/utils/contexts/TobiiProGlasses2.py +++ b/src/argaze/utils/contexts/TobiiProGlasses2.py @@ -1522,7 +1522,15 @@ class SegmentPlayback(ArFeatures.DataPlaybackContext): raise StopIteration # Parse data - data_object, data_object_type = self.__parser.parse_data(status, data) + try: + + data_object, data_object_type = self.__parser.parse_data(status, data) + + except Exception as e: + + logging.error('%s while parsing livedata.json.gz at %i timestamp', e, ts) + + return self.__next_data() # Return millisecond timestamp, data object and type return ts * 1e-3, data_object, data_object_type |