MT#6013 ignore duplicate insert errors

contract balances are created on demand, by different components so
race conditions can occur
agranig/selfsignup
Gerhard Jungwirth 11 years ago
parent 1c8ff01cc1
commit 8b7cdbb630

@ -51,8 +51,12 @@ sub create_contract_balance {
});
});
} catch($e) {
$c->log->error("Creating contract balance failed: " . $e);
$e->rethrow;
if ($e =~ /Duplicate entry/) {
$c->log->warn("Creating contract balance failed: Duplicate entry. Ignoring!");
} else {
$c->log->error("Creating contract balance failed: " . $e);
$e->rethrow;
}
}
}

Loading…
Cancel
Save