mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
fe547530d3
commit
a3a6fc0b2f
|
@ -376,9 +376,13 @@ def html_citations(base_dir: str, nickname: str, domain: str,
|
|||
citations_selected = []
|
||||
if os.path.isfile(citations_filename):
|
||||
citations_separator = '#####'
|
||||
citations = []
|
||||
try:
|
||||
with open(citations_filename, 'r', encoding='utf-8') as fp_cit:
|
||||
citations = fp_cit.readlines()
|
||||
except OSError as exc:
|
||||
print('EX: html_citations unable to read ' +
|
||||
citations_filename + ' ' + str(exc))
|
||||
for line in citations:
|
||||
if citations_separator not in line:
|
||||
continue
|
||||
|
@ -387,9 +391,6 @@ def html_citations(base_dir: str, nickname: str, domain: str,
|
|||
continue
|
||||
date_str = sections[0]
|
||||
citations_selected.append(date_str)
|
||||
except OSError as exc:
|
||||
print('EX: html_citations unable to read ' +
|
||||
citations_filename + ' ' + str(exc))
|
||||
|
||||
# the css filename
|
||||
css_filename = base_dir + '/epicyon-profile.css'
|
||||
|
|
Loading…
Reference in New Issue