Fix subtly incorrect output
This commit is contained in:
parent
15c50424aa
commit
1955620c60
1 changed files with 2 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue