diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-03-06 23:13:10 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-03-06 23:13:51 +0100 |
commit | e2e33de7e1cb82b89cc0b19f9a022787eec98916 (patch) | |
tree | 2797ca5122db88dd1c8704e95870b3d62141b228 /lib/Travelynx/Helper/Traewelling.pm | |
parent | 537d3f4aa56618e080e8cce344fe5459b6d7299f (diff) |
Traewelling: checkin: HTTP 401 is mostly harmless, too
401 typically indicates an expired login token
Diffstat (limited to 'lib/Travelynx/Helper/Traewelling.pm')
-rw-r--r-- | lib/Travelynx/Helper/Traewelling.pm | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |