def getlogo(key): artist=key.get() if artist is None: artist=Artist(key=key) try: logo=images.get_serving_url(artist.getLogo()) except: return "" return logo