mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Better formatting of error message.
This commit is contained in:
parent
4cf2041bc8
commit
5fb9bc3cd2
1 changed files with 1 additions and 1 deletions
|
|
@ -1326,7 +1326,7 @@ def _ensure_not_expired(self, metadata_role):
|
|||
# convert it to seconds since the epoch, which is the time format
|
||||
# returned by time.time() (i.e., current time), before comparing.
|
||||
if tuf.formats.parse_time(expires) < time.time():
|
||||
message = 'Metadata '+repr(rolepath)+' expired on '+expires+' UTC.'
|
||||
message = 'Metadata '+repr(rolepath)+' expired on '+repr(expires)+'.'
|
||||
raise tuf.ExpiredMetadataError(message)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue