exception fix

This commit is contained in:
evgen-d 2014-08-05 10:41:35 +04:00
parent 32f7ae9046
commit 2e208b6f88

View File

@ -89,8 +89,8 @@ class MigrateController extends BaseMigrateController
{
try {
$history = $this->getHistory($limit);
} catch (ServerException $ex) {
if ($ex->getServerCode() == 1203) {
} catch (\Exception $ex) {
if ($ex->getPrevious()->getServerCode() == 1203) {
$this->createMigrationHistoryCollection();
$history = $this->getHistory($limit);
} else {