disappearing trains are no longer critical with the latest change
This commit is contained in:
parent
ac3abd5c51
commit
f355a8d95e
1 changed files with 4 additions and 10 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue