Skip Menu |

This queue is for tickets about the CPAN-Testers-ParseReport CPAN distribution.

Report information
The Basics
Id: 40812
Status: resolved
Priority: 0/
Queue: CPAN-Testers-ParseReport

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.0.18
Fixed in: (no value)



Subject: ->datetime result may be undef
When trying ctgetreports Template-Alloy-XS --solve I get the error Can't call method "datetime" on an undefined value at /usr/local/share/perl/5.8.8/CPAN/Testers/ParseReport.pm line 511, <$fh> line 54. Possibly a report does not supply a valid date and this needs to be catched? Regards, Slaven
On Mon Nov 10 11:10:57 2008, SREZIC wrote: Show quoted text
> When trying > > ctgetreports Template-Alloy-XS --solve > > I get the error > > Can't call method "datetime" on an undefined value at > /usr/local/share/perl/5.8.8/CPAN/Testers/ParseReport.pm line 511, <$fh> > line 54. > > Possibly a report does not supply a valid date and this needs to be
catched? Show quoted text
>
My current workaround is to fake current date in this case: $extract{"meta:date"} = eval { $dt->datetime } || DateTime->now->datetime;
fixed in 0.0.19 by deploying DateTime::Format::DateParse Danke:)