Skip to content

Commit 08a68ee

Browse files
vincentqbfacebook-github-bot
authored andcommitted
[fbsync] remove imprecise error handling in PhotoTour dataset (#3488)
Summary: Co-authored-by: Francisco Massa <[email protected]> Reviewed By: fmassa Differential Revision: D27127993 fbshipit-source-id: fea968bbea5f305e4d69aacbdd0b9d528950666d
1 parent 61ce622 commit 08a68ee

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

torchvision/datasets/phototour.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,7 @@ def __init__(
9292
self.download()
9393

9494
if not self._check_datafile_exists():
95-
try:
96-
self.cache()
97-
except Exception as error:
98-
raise RuntimeError("Dataset not found. You can use download=True to download it") from error
95+
self.cache()
9996

10097
# load the serialized data
10198
self.data, self.labels, self.matches = torch.load(self.data_file)

0 commit comments

Comments
 (0)