mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Fix inst id based line lookup in log_internal_cpp_errors()
This commit is contained in:
@@ -359,10 +359,12 @@ def log_internal_cpp_errors(
|
||||
else:
|
||||
inst = next(
|
||||
(
|
||||
l
|
||||
l.decode("ascii", errors="ignore").strip()
|
||||
for l in lines
|
||||
if l.strip().startswith(f"#{instid}".encode("ascii"))
|
||||
and re.sub(r"\s+", "", l).startswith(f"#{instid}=".encode("ascii"))
|
||||
if l.strip().startswith(f"#{instid[0]}".encode("ascii"))
|
||||
and re.sub(r"\s+".encode("ascii"), b"", l).startswith(
|
||||
f"#{instid[0]}=".encode("ascii")
|
||||
)
|
||||
),
|
||||
None,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user