Better formatting of error message.

This commit is contained in:
dachshund 2013-08-12 12:03:41 -04:00
parent 4cf2041bc8
commit 5fb9bc3cd2

View file

@ -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)