Skip to content

Commit d8d9c85

Browse files
committed
thanks mypy
1 parent 6083203 commit d8d9c85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchvision/datasets/mnist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ def download(self) -> None:
192192
break
193193
else:
194194
s = f"Error downloading {filename}:\n"
195-
for mirror, e in zip(self.mirrors, errors):
196-
s += f"Tried {mirror}, got:\n{str(e)}\n"
195+
for mirror, err in zip(self.mirrors, errors):
196+
s += f"Tried {mirror}, got:\n{str(err)}\n"
197197
raise RuntimeError(s)
198198

199199
def extra_repr(self) -> str:

0 commit comments

Comments
 (0)