Log exception when opening view arch

This commit is contained in:
Cédric Krier committed 2025-12-15 17:12:22 +01:00
1 parent 01bfa635fa
commit f41a2bdef5
1 file changed
+4 -1
+4 -1
View File
@@ -1,6 +1,7 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import json
import logging
import os
from lxml import etree
@@ -19,6 +20,8 @@ from trytond.wizard import Button, StateView, Wizard
from ..action import DomainError, ViewError
logger = logging.getLogger(__name__)
# Numbers taken from Bootstrap's breakpoints
WIDTH_BREAKPOINTS = [
1400,
@@ -265,7 +268,7 @@ class View(
subdir='modules', mode='r', encoding='utf-8') as fp:
value = fp.read()
except IOError:
pass
logger.exception("failed to open %r", path)
if not value:
value = self.data
return value