def update_infofile_cached(self): artist = self.artistName.text() if artist != '未知': infoPath = SearchOnline.get_local_artist_info_path(artist) if os.path.exists(infoPath): os.remove(infoPath) self.set_artist_info(artist)