Skip to content

Commit 092c24c

Browse files
committed
Fix None error
1 parent 291b766 commit 092c24c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ibllib/qc/camera.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,8 @@ def run(self, update: bool = False, **kwargs) -> (str, dict):
347347
namespace = f'video{self.label.capitalize()}'
348348
if all(x is None for x in self.data.values()):
349349
self.load_data(**kwargs)
350-
if self.data['frame_samples'] is None:
350+
if self.data['frame_samples'] is None or self.data['timestamps'] is None:
351351
return 'NOT_SET', {}
352-
353352
if self.data['timestamps'].shape[0] == 0:
354353
_log.error(f'No timestamps for {self.label} camera; setting outcome to CRITICAL')
355354
return 'CRITICAL', {}

0 commit comments

Comments
 (0)