From e2e33de7e1cb82b89cc0b19f9a022787eec98916 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 6 Mar 2022 23:13:10 +0100 Subject: Traewelling: checkin: HTTP 401 is mostly harmless, too 401 typically indicates an expired login token --- lib/Travelynx/Helper/Traewelling.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Travelynx/Helper/Traewelling.pm b/lib/Travelynx/Helper/Traewelling.pm index 430ef62..ccc5711 100644 --- a/lib/Travelynx/Helper/Traewelling.pm +++ b/lib/Travelynx/Helper/Traewelling.pm @@ -353,7 +353,10 @@ sub checkin { my ($tx) = @_; if ( my $err = $tx->error ) { my $err_msg = "HTTP $err->{code} $err->{message}"; - if ( $err->{code} != 409 and $err->{code} != 406 ) { + if ( $err->{code} != 409 + and $err->{code} != 406 + and $err->{code} != 401 ) + { $self->{log}->warn("Traewelling checkin error: $err_msg"); } else { -- cgit v1.2.3