mirror of
https://github.com/elisiariocouto/leggen.git
synced 2025-12-13 12:32:18 +00:00
fix(commands/status): Handle exception when no last_accessed is returned from GoCardless API.
This commit is contained in:
@@ -39,7 +39,11 @@ def status(ctx: click.Context):
|
||||
"Status": details["status"],
|
||||
"IBAN": details.get("iban", "N/A"),
|
||||
"Created at": datefmt(details["created"]),
|
||||
"Last accessed at": datefmt(details["last_accessed"]),
|
||||
"Last accessed at": (
|
||||
datefmt(details["last_accessed"])
|
||||
if details.get("last_accessed")
|
||||
else "N/A"
|
||||
),
|
||||
}
|
||||
)
|
||||
echo()
|
||||
|
||||
Reference in New Issue
Block a user