Skip to content

Commit

Permalink
replace exception with warning
Browse files Browse the repository at this point in the history
  • Loading branch information
epureanudiana committed Jan 24, 2024
1 parent ba09509 commit c5b495c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yolov5/utils/dataloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def __init__(self,
image for image in images_to_process if extract_filename_with_subfolder(image) not in processed_images]

if not self.im_files:
raise Exception(f'{prefix}No (new) images found')
LOGGER.warning(f'{prefix} No (new) images found')

except Exception as e:
raise Exception(f'{prefix}Error loading data from {path}: {e}\n{HELP_URL}') from e
Expand Down

0 comments on commit c5b495c

Please sign in to comment.