From 0fb8f24a63da36b79e130019ab9c6436895b6f5b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 17 Nov 2008 07:40:36 +0000 Subject: Make log message not result in exception when timestamp expires. git-svn-id: file:///home/or/svnrepo/updater/trunk@17311 55e972cd-5a19-0410-ae62-a4d7a52db4cd --- lib/thandy/repository.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/thandy/repository.py') diff --git a/lib/thandy/repository.py b/lib/thandy/repository.py index ad0fe4d..121c5c1 100644 --- a/lib/thandy/repository.py +++ b/lib/thandy/repository.py @@ -331,12 +331,13 @@ class LocalRepository: ts = self._timestampFile.get() if ts: age = now - thandy.formats.parseTime(ts['at']) - ts = thandy.formats.TimestampFile.fromJSon(ts) if age > MAX_TIMESTAMP_AGE: logging.info("Timestamp file from %s is out of " "date; must fetch it.", ts['at']) need.add(self._timestampFile.getRelativePath()) + ts = thandy.formats.TimestampFile.fromJSon(ts) + # If the keylist isn't signed right, we can't check the # signatures on anything else. if self._keylistFile.get(): -- cgit v1.2.3