|
try: |
|
title = root.xpath('//*[local-name()="title"]')[0] |
|
h1 = root.xpath('//*[local-name()="h1"]')[0] |
|
except IndexError: |
|
return |
rather than returning, the exception should try to get the title from other sources (i.e. file name half-title.xhtml -> "Half Title")
access-aide/main.py
Lines 209 to 213 in 54e62f3
rather than returning, the exception should try to get the title from other sources (i.e. file name
half-title.xhtml-> "Half Title")