def _onEmblemReceived(self, size, emblemID, callback, handler, emblem): imgSize = getImageSize(emblem) if imgSize != size: LOG_WARNING('Received club emblem has invalid size, use default instead', imgSize, size, emblemID, callback, handler, type(emblem)) emblem = self._getDefaultImage(size) handler(emblemID, emblem) if callback is not None: callback(emblemID, emblem)
def _onEmblemReceived(_, emblem): imgSize = getImageSize(emblem) if imgSize != size: LOG_WARNING('Received emblem has invalid size, use default instead', imgSize, size, url, type(emblem)) emblem = defaultEmblemGetter(size) callback(emblem)