summaryrefslogtreecommitdiff
path: root/lib/thandy/repository.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thandy/repository.py')
-rw-r--r--lib/thandy/repository.py3
1 files changed, 2 insertions, 1 deletions
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():