diff --git a/odoo/tools/profiler.py b/odoo/tools/profiler.py index 28c7dac4d76..a95675b1e58 100644 --- a/odoo/tools/profiler.py +++ b/odoo/tools/profiler.py @@ -623,6 +623,8 @@ class Profiler: if line != '': continue # retrieve file lines from the filecache + if not lineno: + continue try: filelines = self.filecache[filename] except KeyError: