From 2534cae31f542329a9722818e27df5ecc65a1f68 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 23 Dec 2022 21:20:32 +0100 Subject: [PATCH] work: not finding a departing train is not critical --- lib/Travelynx/Command/work.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index 958f731..811b8f1 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -57,7 +57,9 @@ sub run { @{ $status->{results} }; 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(