From 8eb7daad3a458f09840ed02432ca356dee5ab924 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 29 Aug 2016 09:21:49 +0100 Subject: =?UTF-8?q?Remove=20an=20except=20block=20targetting=20Python?= =?UTF-8?q?=C2=A03.1.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- poezio/config.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/poezio/config.py b/poezio/config.py index 91e82268..15380b8b 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -159,10 +159,7 @@ class Config(RawConfigParser): self.default = default def read_file(self): - try: - RawConfigParser.read(self, self.file_name, encoding='utf-8') - except TypeError: # python < 3.2 sucks - RawConfigParser.read(self, self.file_name) + RawConfigParser.read(self, self.file_name, encoding='utf-8') # Check config integrity and fix it if it’s wrong # only when the object is the main config if self.__class__ is Config: -- cgit v1.2.3