summaryrefslogtreecommitdiff
path: root/poezio/roster.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/roster.py')
-rw-r--r--poezio/roster.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/roster.py b/poezio/roster.py
index 15b3b01c..ac8012cb 100644
--- a/poezio/roster.py
+++ b/poezio/roster.py
@@ -238,16 +238,16 @@ class Roster(object):
def export(self, path):
"""Export a list of bare jids to a given file"""
if p.isfile(path):
- return
+ return False
try:
f = open(path, 'w+', encoding='utf-8')
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
+ return False
except OSError:
- return
+ return False
def exists(self, contact):
if not contact: