Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
catch errors in load dataframe (#68)
Browse files Browse the repository at this point in the history
Co-authored-by: Sam <[email protected]>
  • Loading branch information
SamVanhoutte and SamVanhoutte authored Jun 15, 2020
1 parent bbfda11 commit de20e8c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions arcus/ml/images/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ def load_images_from_dataframe(df: pd.DataFrame, image_column_name:str, target_c
except FileNotFoundError:
_logger.warning('File ' + file + ' not found')
filecheck_ok = False
except:
_logger.warning('File ' + file + ' resulted in an error')
filecheck_ok = False

if filecheck_ok :
images.append(im)
Expand Down
1 change: 0 additions & 1 deletion tests/resources/temp/io/__empty.py

This file was deleted.

1 change: 1 addition & 0 deletions tests/resources/temp/io/__emptyfile__
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
do not remove
1 change: 0 additions & 1 deletion tests/resources/temp/io/_empty.py

This file was deleted.

0 comments on commit de20e8c

Please sign in to comment.