From f355a8d95e4511687df70a91fea079380b234040 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 1 Jun 2019 12:38:26 +0200 Subject: disappearing trains are no longer critical with the latest change --- lib/Travelynx/Command/work.pm | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index 80c584c..3ca9409 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -84,16 +84,10 @@ sub run { = first { $_->train_id eq $train_id } @{ $status->{results} }; if ( not $train ) { - if ( $entry->{real_arr_ts} ) { - die( -"could not find train $train_id at $arr -- did it disappear?\n" - ); - } - else { - # If we haven't seen the train yet, its arrival is probably - # too far in the future. This is not critical. - return; - } + + # If we haven't seen the train yet, its arrival is probably + # too far in the future. This is not critical. + return; } $db->update( -- cgit v1.2.3