From e7832c3326c9b3763484e1508cc41e8757848a1c Mon Sep 17 00:00:00 2001 From: Jacob Appelbaum Date: Sat, 26 Dec 2009 18:07:14 +0100 Subject: [PATCH] Be explicit about our return values --- blockfinder | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blockfinder b/blockfinder index 4e15a94..4157bb5 100755 --- a/blockfinder +++ b/blockfinder @@ -77,8 +77,10 @@ def cache_delegation(delegation_url, cache_dir): f = open(delegation_file, 'w') f.write(delegation) f.close() + return True except: print "Unable to fetch or cache delegation" + return False # This returns true of the cache is older than 24 hours def cache_age_check(cache_dir, cached_files): -- 2.11.4.GIT