fix previos commit

This commit is contained in:
Denis Fomin 2011-10-10 22:06:30 +03:00
parent c0330a8685
commit 572248b077
1 changed files with 4 additions and 1 deletions

View File

@ -234,6 +234,9 @@ class GajimPluginConfig():
def keys(self):
return self.data.keys()
def items(self):
return self.data.items()
@log_calls('GajimPluginConfig')
def save(self):
fd = open(self.FILE_PATH, 'wb')
@ -242,7 +245,7 @@ class GajimPluginConfig():
@log_calls('GajimPluginConfig')
def load(self):
if os.path.isfile('qwe'):
if os.path.isfile(self.FILE_PATH):
fd = open(self.FILE_PATH, 'rb')
try:
self.data = cPickle.load(fd)