IOError == OSError since python 3.3

This commit is contained in:
mathieui 2016-10-21 01:52:41 +02:00
parent 64c272d2bf
commit 8549da0348

View file

@ -244,8 +244,6 @@ class Roster(object):
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 False
except OSError:
return False