From 2a3b50caa1213832b582f44c49582ec92c953a43 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 31 May 2024 17:33:30 +0300 Subject: [PATCH] Serializing the error Signed-off-by: Dimitris Zlatanidis --- slpkg/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index b0999881..a0630ecf 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -145,7 +145,7 @@ class Upgrade(Configs): # pylint: disable=[R0902] log[self.repository]: dict = { 'installed package': installed, 'repository package': self.data[name]['package'], - 'error': err + 'error': str(err) } self.upgrade_log_file.write_text(json.dumps(log, indent=4), encoding='utf-8')