Skip to content

Commit

Permalink
use lazy formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasNeugebauer committed Aug 30, 2024
1 parent 007e839 commit 1cb1db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions learning_loop_node/data_exchanger.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ async def _download_one_image(self, path: str, image_id: str, image_folder: str)
async with aiofiles.open(filename, 'wb') as f:
await f.write(response.content)
if not await is_valid_image(filename, self.check_jpeg):
logging.error(f'Invalid image {filename}. Removing..')
logging.error('Invalid image "%s". Removing it..', filename)
os.remove(filename)
else:
logging.debug(f'Downloaded image {filename}')
logging.debug('Downloaded image "%s"', filename)

async def download_model(self, target_folder: str, context: Context, model_uuid: str, model_format: str) -> List[str]:
"""Downloads a model (and additional meta data like model.json) and returns the paths of the downloaded files.
Expand Down

0 comments on commit 1cb1db2

Please sign in to comment.