[elbe-devel] [PATCH 5/7] elbepack: archivedir: correctly print error message
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Wed Jul 24 10:01:33 CEST 2024
"archivedir.text" is a method object, it can't be printed on its own.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/archivedir.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/archivedir.py b/elbepack/archivedir.py
index 9064804839de..1ae17cb78b35 100644
--- a/elbepack/archivedir.py
+++ b/elbepack/archivedir.py
@@ -125,7 +125,7 @@ def _combinearchivedir(xml, xpath, use_volume):
parent.remove_child(archivedir)
except (CalledProcessError, OSError):
- msg = 'Failure while processing \"' + archivedir.text + '\":\n'
+ msg = 'Failure while processing \"' + archivedir.tostring() + '\":\n'
msg += str(sys.exc_info()[1])
raise ArchivedirError(msg)
--
2.45.2
More information about the elbe-devel
mailing list