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.
KeyError
_fetch_testcases_raw()
1 parent 254eb05 commit e23a5e4Copy full SHA for e23a5e4
reframe/frontend/reporting/storage.py
@@ -213,10 +213,16 @@ def _fetch_testcases_raw(self, condition):
213
session_uuid, run_index, test_index = uuid.split(':')
214
run_index = int(run_index)
215
test_index = int(test_index)
216
- report = sessions[session_uuid]
217
- testcases.append(
218
- report['runs'][run_index]['testcases'][test_index],
219
- )
+ try:
+ report = sessions[session_uuid]
+ except KeyError:
+ # Since we do two separate queries, new testcases may have been
220
+ # inserted to the DB meanwhile, so we ignore unknown sessions
221
+ continue
222
+ else:
223
+ testcases.append(
224
+ report['runs'][run_index]['testcases'][test_index],
225
+ )
226
227
return testcases
228
0 commit comments