Skip to content

Commit 6f062c9

Browse files
pmeierfmassa
andauthored
remove imprecise error handling in PhotoTour dataset (#3488)
Co-authored-by: Francisco Massa <[email protected]>
1 parent 1a46ec9 commit 6f062c9

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)