From 8549da0348d806dfa77305e36524135cefbc188c Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 21 Oct 2016 01:52:41 +0200 Subject: IOError == OSError since python 3.3 --- poezio/roster.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'poezio') diff --git a/poezio/roster.py b/poezio/roster.py index ac8012cb..89925e07 100644 --- a/poezio/roster.py +++ b/poezio/roster.py @@ -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 -- cgit v1.2.3