Transfers may not always have delivery-id and delivery-tag
@@ -237,6 +237,7 @@ class DescribedType:
self.add_field_to_dict(fHandle)
self.line = self.line[(len(fHandle) + 1):]
+ try:
fDelId = self.line.split()[0]
self.add_field_to_dict(fDelId)
self.line = self.line[(len(fDelId) + 1):]
@@ -247,6 +248,10 @@ class DescribedType:
# the remainder, no matter how unlikely, must be the delivery-tag
self.add_field_to_dict(self.line, "delivery-tag")
+ except:
+ # delivery-id and delivery-tag are optional in subsequent transfers
+ # when more=true.
+ pass
def parse_dtype_line(self, _dtype, _line):
"""
