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 d7ed7cb commit caaa89fCopy full SHA for caaa89f
src/murfey/client/contexts/tomo_metadata.py
@@ -257,9 +257,12 @@ def post_transfer(
257
for_parsing = xml.read()
258
batch_xml = xmltodict.parse(for_parsing)
259
260
- batch_positions_list = batch_xml["BatchPositionsList"]["BatchPositions"][
261
- "BatchPositionParameters"
262
- ]
+ batch_positions_from_xml = batch_xml["BatchPositionsList"]["BatchPositions"]
+ if not batch_positions_from_xml:
+ logger.info("No batch positions yet")
263
+ return
264
+
265
+ batch_positions_list = batch_positions_from_xml["BatchPositionParameters"]
266
if isinstance(batch_positions_list, dict):
267
# Case of a single batch
268
batch_positions_list = [batch_positions_list]
0 commit comments