Skip to content

Commit

Permalink
fix broken try
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Mar 3, 2014
1 parent fdb34d2 commit b0062d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/MetaCPAN/Web/Model/API.pm
Expand Up @@ -72,8 +72,9 @@ sub request {

$self->client->request($request)->cv->cb(
sub {
my $cv = shift;
try {
my ( $response, $stats ) = shift->recv;
my ( $response, $stats ) = $cv->recv;
if ( !$response ) {
$req->croak("bad response when requesting " . $request->uri);
return;
Expand Down

0 comments on commit b0062d5

Please sign in to comment.