Skip to content

Commit 0874fba

Browse files
committed
Don't return None
1 parent abf4a75 commit 0874fba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readthedocs/search/parse_json.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ def generate_sections_from_pyquery(body):
6060

6161

6262
def process_file(fjson_filename, filename):
63-
"""Read a file from disk and parse it into a structured dict."""
63+
"""Read the fjson file from disk and parse it into a structured dict."""
6464
try:
6565
with codecs.open(fjson_filename, encoding='utf-8', mode='r') as f:
6666
file_contents = f.read()
6767
except IOError:
6868
log.info('Unable to read file: %s', fjson_filename)
69-
return None
69+
raise
7070
data = json.loads(file_contents)
7171
sections = []
7272
title = ''

0 commit comments

Comments
 (0)