details:   https://code.tryton.org/tryton/commit/a84e4bae7609
branch:    default
user:      Cédric Krier <[email protected]>
date:      Mon Dec 15 17:12:22 2025 +0100
description:
        Log exception when opening view arch
diffstat:

 trytond/trytond/ir/ui/view.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 941620f8326b -r a84e4bae7609 trytond/trytond/ir/ui/view.py
--- a/trytond/trytond/ir/ui/view.py     Sat Jan 03 14:06:42 2026 +0100
+++ b/trytond/trytond/ir/ui/view.py     Mon Dec 15 17:12:22 2025 +0100
@@ -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 ..action import DomainError, ViewError
 
+logger = logging.getLogger(__name__)
+
 # Numbers taken from Bootstrap's breakpoints
 WIDTH_BREAKPOINTS = [
     1400,
@@ -265,7 +268,7 @@
                         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

Reply via email to