message: emails - exception handling
diff: @@ -331,7 +331,6 @@ export default class EMailNotificationTask implements NotificationTask {
  }
  });
  } catch (error) {
  - try {
  await Logging.logError({
  tenantID: tenant.id ? tenant.id : Constants.DEFAULT_TENANT_ID,
  siteID: data?.siteID,
  @@ -350,11 +349,7 @@ export default class EMailNotificationTask implements NotificationTask {
  error: error.stack,
  }
  });
  - // For Unit Tests only: Tenant is deleted and email is not known thus this Logging statement is always failing with an invalid Tenant
  - // eslint-disable-next-line no-empty
  - } catch (err) {
  - // Ignore
  - }
  + // Second try
  let smtpFailed = true;
  if (error instanceof SMTPError) {
  const err: SMTPError = error;
  