Skip to content

Commit 5658cd8

Browse files
committed
add try block in inception v3 to fix tx learning
1 parent 9665d5f commit 5658cd8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/app/apis/InceptionV3/API_helpers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ def download_a_dir_from_s3(bucket_name, bucket_prefix, local_path):
6969
os.makedirs(save_path)
7070
except OSError:
7171
pass
72-
mybucket.download_file(obj.key, os.path.join(save_path, filename))
72+
try:
73+
mybucket.download_file(obj.key, os.path.join(save_path, filename))
74+
except OSError:
75+
pass
7376

7477
print "* Helper: Images Loaded at: {}".format(output_path)
7578
return output_path

0 commit comments

Comments
 (0)