Skip to content

EspoCRM – Open Source CRM Application

Fix

Yurii919df53707af
diff --git a/application/Espo/Core/Mail/Importer/DefaultImporter.php b/application/Espo/Core/Mail/Importer/DefaultImporter.php
index beec89eb84..db76d5f018 100644
--- a/application/Espo/Core/Mail/Importer/DefaultImporter.php
+++ b/application/Espo/Core/Mail/Importer/DefaultImporter.php
@@ -68,8 +68,6 @@ use Espo\Tools\Stream\Jobs\ProcessNoteAcl;
use DateTime;
use Exception;
-use DateMalformedStringException;
-use RuntimeException;
class DefaultImporter implements Importer
{
@@ -707,11 +705,8 @@ class DefaultImporter implements Importer
$dt = new DateTime();
- try {
- $dt->modify('+' . self::PROCESS_ACL_DELAY_PERIOD);
- } catch (DateMalformedStringException $e) {
- throw new RuntimeException(previous: $e);
- }
+ /** @noinspection PhpUnhandledExceptionInspection */
+ $dt->modify('+' . self::PROCESS_ACL_DELAY_PERIOD);
$this->jobSchedulerFactory
->create()