Skip to content

Commit 143a58d

Browse files
committed
Added handling for an EOF exception that can occur when using the django file-based cache.
- Legacy-Id: 15769
1 parent 7b62cbf commit 143a58d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ietf/doc/models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,10 @@ def htmlized(self):
497497
if text:
498498
cache = caches['htmlized']
499499
cache_key = name.split('.')[0]
500-
html = cache.get(cache_key)
500+
try:
501+
html = cache.get(cache_key)
502+
except EOFError:
503+
html = None
501504
if not html:
502505
# The path here has to match the urlpattern for htmlized
503506
# documents in order to produce correct intra-document links

0 commit comments

Comments
 (0)