Catch errors while performing query

[MAILPOET-6184]
This commit is contained in:
Pavel Dohnal
2024-08-14 13:28:50 +02:00
committed by Aschepikov
parent c039b220a7
commit d137b55dd4

View File

@@ -31,12 +31,16 @@ class DatabaseEngineNotice {
return null;
}
$tablesWithIncorrectEngine = $this->checkTableEngines();
if ($tablesWithIncorrectEngine === []) {
return null;
}
try {
$tablesWithIncorrectEngine = $this->checkTableEngines();
if ($tablesWithIncorrectEngine === []) {
return null;
}
return $this->display($tablesWithIncorrectEngine);
return $this->display($tablesWithIncorrectEngine);
} catch (\Exception $e) {
return null;
}
}
/**