IOError == OSError since python 3.3
This commit is contained in:
parent
64c272d2bf
commit
8549da0348
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue