work: not finding a departing train is not critical

This commit is contained in:
Daniel Friesel 2022-12-23 21:20:32 +01:00
parent 4b37560640
commit 2534cae31f
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -57,7 +57,9 @@ sub run {
@{ $status->{results} }; @{ $status->{results} };
if ( not $train ) { if ( not $train ) {
die("could not find train $train_id at $dep\n"); $self->log->info(
"could not find train $train_id at $dep\n");
return;
} }
$self->app->in_transit->update_departure( $self->app->in_transit->update_departure(