diff --git a/poezio/config.py b/poezio/config.py index f7d73164..f3c5f375 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -168,7 +168,7 @@ class Config(RawConfigParser): self.default = default def read_file(self): - RawConfigParser.read(self, self.file_name, encoding='utf-8') + RawConfigParser.read(self, str(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: