def read(self): f = open(self.__fn()) try: d = json.load(f) # munge old format to new if need be self.populate_content(d) except Exception: pass f.close()