Serializing the error

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2024-05-31 17:33:30 +03:00
parent eba04fc494
commit 2a3b50caa1

View file

@ -145,7 +145,7 @@ class Upgrade(Configs): # pylint: disable=[R0902]
log[self.repository]: dict = { log[self.repository]: dict = {
'installed package': installed, 'installed package': installed,
'repository package': self.data[name]['package'], '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') self.upgrade_log_file.write_text(json.dumps(log, indent=4), encoding='utf-8')