diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-06-01 12:38:26 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-06-01 12:38:26 +0200 |
commit | f355a8d95e4511687df70a91fea079380b234040 (patch) | |
tree | fdfdb9e7bf683b92c603c2f2a32301b0d9cb8cbc /lib/Travelynx/Command/work.pm | |
parent | ac3abd5c51c98749906678277ed2e808d4b79021 (diff) |
disappearing trains are no longer critical with the latest change1.7.1
Diffstat (limited to 'lib/Travelynx/Command/work.pm')
-rw-r--r-- | lib/Travelynx/Command/work.pm | 14 |
1 files 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( |