Skip to content

Commit

Permalink
Use f-string for exception message instead of format
Browse files Browse the repository at this point in the history
  • Loading branch information
machawk1 committed Jun 19, 2020
1 parent 98c1cb4 commit 8f65140
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ipwb/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@ class InvalidWARCDateException(Exception):
target_string: str

def __str__(self):
return 'WARC-Date {self.target_string} not parseable.'.format(
self=self,
)
return f'WARC-Date {self.target_string} not parseable.'


def iso8601ToDigits14(warcDatetimeString):
Expand Down

0 comments on commit 8f65140

Please # to comment.