Skip to content

Commit

Permalink
Print a dash instead of None if formato_attachment is not defined. re…
Browse files Browse the repository at this point in the history
…fs: #32
  • Loading branch information
spanezz committed Jan 9, 2024
1 parent 1fefbd2 commit 5e4a0f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion a38tool
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,8 @@ class Allegati(App):
return False

def print_allegato(self, index: int, allegato: fattura.Allegati) -> None:
print(f"{index:02d}: {allegato.formato_attachment} {allegato.nome_attachment}")
formato = allegato.formato_attachment or "-"
print(f"{index:02d}: {formato} {allegato.nome_attachment}")
if allegato.descrizione_attachment:
print(f" {allegato.descrizione_attachment}")

Expand Down

0 comments on commit 5e4a0f2

Please sign in to comment.