Commit b245ff6e authored by mathieui's avatar mathieui

Fix /export

parent 099d1d1c
......@@ -243,11 +243,14 @@ class Roster(object):
return
try:
f = open(path, 'w+', encoding='utf-8')
f.writelines([i + "\n" for i in self.contacts])
f.writelines([str(i) + "\n" for i in self.contacts if self[i] and (self[i].subscription == "both" or self[i].ask)])
f.close()
return True
except IOError:
return
except OSError:
return
def exists(self, contact):
if not contact:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment