Skip to content

Commit

Permalink
use modern python
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen authored Jul 11, 2021
1 parent 82d92b1 commit 2a71cc6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyrovision/datasets/openfire.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ def download(self) -> None:
md5=md5
)
except URLError as error:
print(
"Failed to download (trying next):\n{}".format(error)
)
print(f"failed to download {self.url}. Please investigate")

def extra_repr(self) -> str:
return "Split: {}".format("Train" if self.train is True else "Test")
return f"train={self.train}"

0 comments on commit 2a71cc6

Please sign in to comment.