You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a config file that reads effective_date from a CSV field and assigns is to the transaction via a template like this: {date}={effective_date}.
If the effective_date CSV field is empty the program crashes (ValueError: time data '' does not match format '%d/%m/%Y')
Is there any way the template assignment of the effective_date tag to be optional, ie. only take place when effective_date is actually not null?
LE: It turns out the error is only raised when there is a custom ledger_date_format (which would be applied over a null value). I still think it would be best if there was a way to only add the ={effective_date} when the date actually exists; but I don't know how to do this with python format specification (or whether it's even possible in the first place).
The text was updated successfully, but these errors were encountered:
I'm using a config file that reads effective_date from a CSV field and assigns is to the transaction via a template like this:
{date}={effective_date}
.If the
effective_date
CSV field is empty the program crashes (ValueError: time data '' does not match format '%d/%m/%Y'
)Is there any way the template assignment of the
effective_date
tag to be optional, ie. only take place wheneffective_date
is actually not null?LE: It turns out the error is only raised when there is a custom
ledger_date_format
(which would be applied over a null value). I still think it would be best if there was a way to only add the={effective_date}
when the date actually exists; but I don't know how to do this with python format specification (or whether it's even possible in the first place).The text was updated successfully, but these errors were encountered: