Fix subtly incorrect output

This commit is contained in:
XANTRONIX Development 2025-01-10 01:04:34 -05:00
parent 15c50424aa
commit 1955620c60

View file

@ -652,7 +652,7 @@ class Session(Connection):
def _or(a, b):
return a if a is not None else b
xref = message.headers.get('Xref')
xref = message.header('Xref')
parts = [
str(message.id),
@ -663,11 +663,9 @@ class Session(Connection):
_or(message.reference_ids, ''),
str(int_bytes),
str(int_lines),
'Xref: %s' % (xref,) if xref is not None else ''
]
if xref is not None:
parts.append('Xref: %s' % xref)
return map(f, parts)
def _cmd_over(self, identifier: Optional[str]=None):