We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b6a049 commit 0ac7ee8Copy full SHA for 0ac7ee8
labelbox/data/generator.py
@@ -83,8 +83,6 @@ def __next__(self) -> Any:
83
84
if self.multithread:
85
value = self.queue.get()
86
- if isinstance(value, Exception):
87
- raise value
88
89
while value is None:
90
self.completed_threads += 1
@@ -94,6 +92,8 @@ def __next__(self) -> Any:
94
92
thread.join()
95
93
raise StopIteration
96
+ if isinstance(value, Exception):
+ raise value
97
else:
98
value = self._process(next(self._data))
99
return value
0 commit comments