# HG changeset patch # User Paul Boddie # Date 1342477698 -7200 # Node ID 71f9ab686c84ce95417cdb8cc27ce79213dfea9e # Parent 9f58613d4d5b36e523d8f867a210de293c1ce98b Fixed broken syntax due to the origin of the code in EventAggregatorSupport. diff -r 9f58613d4d5b -r 71f9ab686c84 MoinRemoteSupport.py --- a/MoinRemoteSupport.py Tue Jul 17 00:25:35 2012 +0200 +++ b/MoinRemoteSupport.py Tue Jul 17 00:28:18 2012 +0200 @@ -17,6 +17,8 @@ accessing a cache entry with the given 'arena' and 'scope' where the data has already been downloaded. The 'max_cache_age' indicates the length in seconds that a cache entry remains valid. + + If the resource cannot be downloaded and cached, None is returned. """ # See if the URL is cached. @@ -49,13 +51,12 @@ cache_entry.close() f.close() - # In case of an exception, just ignore the remote source. - # NOTE: This could be reported somewhere. + # In case of an exception, return None. except IOError: if cache_entry.exists(): cache_entry.remove() - continue + return None # Open the cache entry and read it.