Skip to content
Snippets Groups Projects
Commit 8305f6d6 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix upgrading from old plugin config files

parent 71aeb800
No related branches found
No related tags found
No related merge requests found
......@@ -264,9 +264,10 @@ class GajimPluginConfig():
'%s and creating a new one' % (self.plugin.short_name,
self.FILE_PATH + '.bak'))
if os.path.exists(self.FILE_PATH + '.bak'):
os.rename(self.FILE_PATH, self.FILE_PATH + '.bak')
self.data = {}
self.save()
os.remove(self.FILE_PATH + '.bak')
os.rename(self.FILE_PATH, self.FILE_PATH + '.bak')
self.data = {}
self.save()
else:
self.data = {}
self.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment