mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 06:32:09 +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:
|
else:
|
||||||
inst = next(
|
inst = next(
|
||||||
(
|
(
|
||||||
l
|
l.decode("ascii", errors="ignore").strip()
|
||||||
for l in lines
|
for l in lines
|
||||||
if l.strip().startswith(f"#{instid}".encode("ascii"))
|
if l.strip().startswith(f"#{instid[0]}".encode("ascii"))
|
||||||
and re.sub(r"\s+", "", l).startswith(f"#{instid}=".encode("ascii"))
|
and re.sub(r"\s+".encode("ascii"), b"", l).startswith(
|
||||||
|
f"#{instid[0]}=".encode("ascii")
|
||||||
|
)
|
||||||
),
|
),
|
||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user