File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
astropylibrarian/reducers Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -182,24 +182,28 @@ def process_html(self, html_page: HtmlPage) -> None:
182
182
try :
183
183
self ._h1 = self ._get_section_title (doc .cssselect ("h1" )[0 ])
184
184
except IndexError :
185
+ logger .warning ("Did not find h1" )
185
186
pass
186
187
187
188
try :
188
189
authors_paragraph = doc .cssselect (".card section p, .card .section p" )[0 ]
189
190
self ._authors = self ._parse_comma_list (authors_paragraph )
190
191
except IndexError :
192
+ logger .warning ("Did not find authors" )
191
193
pass
192
194
193
195
try :
194
196
keywords_paragraph = doc .cssselect ("#keywords p" )[0 ]
195
197
self ._keywords = self ._parse_comma_list (keywords_paragraph )
196
198
except IndexError :
199
+ logger .warning ("Did not find keywords" )
197
200
pass
198
201
199
202
try :
200
203
summary_paragraph = doc .cssselect ("#summary p" )[0 ]
201
204
self ._summary = summary_paragraph .text_content ().replace ("\n " , " " )
202
205
except IndexError :
206
+ logger .warning ("Did not find summary" )
203
207
pass
204
208
205
209
image_elements = doc .cssselect (".card section img, .card .section img" )
You can’t perform that action at this time.
0 commit comments