Don't die on this.
This commit is contained in:
parent
9733aff0f3
commit
bf00eeca74
1 changed files with 1 additions and 1 deletions
|
@ -1624,7 +1624,7 @@ sub _readLedgerData($) {
|
||||||
open(ALL, "-|", @cmd) or confess "unable to run command ledger command: @cmd: $!";
|
open(ALL, "-|", @cmd) or confess "unable to run command ledger command: @cmd: $!";
|
||||||
while (my $line = <ALL>) {
|
while (my $line = <ALL>) {
|
||||||
next if $line =~ /^\s*$/;
|
next if $line =~ /^\s*$/;
|
||||||
die "Invalid line in @cmd output:\n $line"
|
warn "Invalid line in @cmd output:\n $line"
|
||||||
unless $line =~ /^\s*([^\d]+)\s+([\d\-]+)\s+(\S*)\s+\$\s*(\-?\s*[\d,\.]+)\s*$/;
|
unless $line =~ /^\s*([^\d]+)\s+([\d\-]+)\s+(\S*)\s+\$\s*(\-?\s*[\d,\.]+)\s*$/;
|
||||||
my($type, $date, $entityId, $amount) = ($1, $2, $3, $4);
|
my($type, $date, $entityId, $amount) = ($1, $2, $3, $4);
|
||||||
next unless defined $entityId and $entityId !~ /^\s*$/;
|
next unless defined $entityId and $entityId !~ /^\s*$/;
|
||||||
|
|
Loading…
Reference in a new issue