mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Serializing the error
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
eba04fc494
commit
2a3b50caa1
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue