From bd208f95be4fc8ceb2f93937db2febd8fcbc339d Mon Sep 17 00:00:00 2001
From: Emmanuel Viennet <emmanuel.viennet@gmail.com>
Date: Wed, 12 Mar 2025 11:02:16 +0100
Subject: [PATCH] PE: fix potential bug in pe_print
---
app/pe/pe_affichage.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/pe/pe_affichage.py b/app/pe/pe_affichage.py
index 4ed7c7d3..72762a8c 100644
--- a/app/pe/pe_affichage.py
+++ b/app/pe/pe_affichage.py
@@ -27,7 +27,7 @@ def pe_print(*a, **cles):
msg = " ".join(a)
print(msg)
else:
- lines = getattr(g, "scodoc_pe_log")
+ lines = getattr(g, "scodoc_pe_log", None)
if lines is None:
lines = pe_start_log()
msg = " ".join(a)
--
GitLab