From 5fb9bc3cd291f2f6b8e46e62acca14ba6e0baeca Mon Sep 17 00:00:00 2001 From: dachshund Date: Mon, 12 Aug 2013 12:03:41 -0400 Subject: [PATCH] Better formatting of error message. --- tuf/client/updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuf/client/updater.py b/tuf/client/updater.py index 4a7692ce..8b020905 100755 --- a/tuf/client/updater.py +++ b/tuf/client/updater.py @@ -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)