summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Helper/Traewelling.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-02-21 21:13:09 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-02-21 21:13:09 +0100
commita21826a055a5f477560537f4bd022a7cdb15d50a (patch)
tree1debe43636911f1f19c54bd9525151f2fbad45ed /lib/Travelynx/Helper/Traewelling.pm
parent9666a2c6bcd66cab5be07e9458429405dd3cf889 (diff)
Traewelling: Ignore HTTP 406 on checkin as well1.19.7
HTTP 406 indicates that a user has not accepted the ToS / privacy policy
Diffstat (limited to 'lib/Travelynx/Helper/Traewelling.pm')
-rw-r--r--lib/Travelynx/Helper/Traewelling.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Helper/Traewelling.pm b/lib/Travelynx/Helper/Traewelling.pm
index d22e799..7bac88a 100644
--- a/lib/Travelynx/Helper/Traewelling.pm
+++ b/lib/Travelynx/Helper/Traewelling.pm
@@ -330,7 +330,7 @@ sub checkin {
my ($tx) = @_;
if ( my $err = $tx->error ) {
my $err_msg = "HTTP $err->{code} $err->{message}";
- if ( $err->{code} != 409 ) {
+ if ( $err->{code} != 409 and $err->{code} != 406 ) {
$self->{log}->warn("Traewelling checkin error: $err_msg");
}
else {