Traewelling: Ignore HTTP 406 on checkin as well

HTTP 406 indicates that a user has not accepted the ToS / privacy policy
This commit is contained in:
Daniel Friesel 2021-02-21 21:13:09 +01:00
parent 9666a2c6bc
commit a21826a055

View file

@ -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 {