def read(self): try: self.path = BugPath.findIniFile(self.name) if not self.path: self.create() else: self.config = ConfigObj(self.path, encoding='utf_8') # BugConfigTracker.add("BUG_Mod_Config", self.path) except IOError: self.path = None self.config = None BugUtil.error("BugOptions - error reading file '%s'", name)