diff options
Diffstat (limited to 'lib/Travelynx')
-rw-r--r-- | lib/Travelynx/Helper/DBDB.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travelynx/Helper/DBDB.pm b/lib/Travelynx/Helper/DBDB.pm index c7c9d4c..82cdc72 100644 --- a/lib/Travelynx/Helper/DBDB.pm +++ b/lib/Travelynx/Helper/DBDB.pm @@ -72,7 +72,7 @@ sub has_wagonorder_p { $promise->resolve('a'); } else { - my $code = $tx->code; + my $code = $tx->res->code; $self->{log}->debug("${debug_prefix}: n (HTTP $code)"); $cache->set( "HEAD $url", 'n' ); $promise->reject; @@ -132,7 +132,7 @@ sub get_wagonorder_p { $promise->resolve($json); } else { - my $code = $tx->code; + my $code = $tx->res->code; $self->{log}->debug("${debug_prefix}: HTTP ${code}"); $promise->reject("HTTP ${code}"); } |