diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-06 06:41:52 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-06 06:41:52 +0200 |
commit | c3a43725d43126bea108f9080be256bd29f1811c (patch) | |
tree | f1ca19af1d776cd8d5ea2f06dcb4a797bca3a2f5 /lib/Travelynx | |
parent | 41cc5f3c254ecfd328a5bcab9ff5eba2023527a8 (diff) |
traewelling: trace missing username bug2.6.15
Diffstat (limited to 'lib/Travelynx')
-rw-r--r-- | lib/Travelynx/Command/traewelling.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Travelynx/Command/traewelling.pm b/lib/Travelynx/Command/traewelling.pm index 4c47e84..96fac49 100644 --- a/lib/Travelynx/Command/traewelling.pm +++ b/lib/Travelynx/Command/traewelling.pm @@ -30,6 +30,13 @@ sub pull_sync { next; } + if ( not defined $account_data->{data}{user_name} ) { + $self->app->log->error( +"travelynx user $account_data->{user_id} has a Traewellig connection, but no username" + ); + next; + } + # $account_data->{user_id} is the travelynx uid # $account_data->{user_name} is the Träwelling username $request_count += 1; |