Commit 348c15258248229e69d60accd9f0007577e82425
1 parent
b29de602
Exists in
master
and in
39 other branches
Closing file after reading content
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/proxy/search_indexes.py
... | ... | @@ -51,6 +51,7 @@ class AttachmentIndex(BaseIndex, indexes.Indexable): |
51 | 51 | return data |
52 | 52 | backend = self._get_backend(None) |
53 | 53 | extracted_data = backend.extract_file_contents(file_obj) |
54 | + file_obj.close() | |
54 | 55 | |
55 | 56 | t = loader.select_template( |
56 | 57 | ('search/indexes/proxy/attachment_text.txt', ) | ... | ... |