I just noticed that isodate.duration_isoformat does not raise an Exception if invalid inputs are passed, even if the type is wrong. Instead, it returns 'P%P'. I don't know the internals, but a check on the validity of the inputs would make this much safer.
Hi,
I just noticed that
isodate.duration_isoformat
does not raise an Exception if invalid inputs are passed, even if the type is wrong. Instead, it returns'P%P'
. I don't know the internals, but a check on the validity of the inputs would make this much safer.