Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dspinellis committed Sep 15, 2024
1 parent 7bfee12 commit 7e5a308
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/pelican-bibtex/pelican_bibtex.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ def add_publications(generator):
entry = bibdata_all.entries[key]
year = entry.fields.get('year')
if not year:
logger.error(f'`pelican_bibtex` Missing year field for {entry}')
logger.error(f'`pelican_bibtex` Missing year field for {key}')
XEcategory = entry.fields.get('XEcategory')
if not XEcategory:
logger.error(f'`pelican_bibtex` Missing XEcategory field for {entry}')
logger.error(f'`pelican_bibtex` Missing XEcategory field for {key}')
XEmember = entry.fields.get('XEmember')
if not XEmember:
logger.error(f'`pelican_bibtex` Missing XEmember field for {entry}')
logger.error(f'`pelican_bibtex` Missing XEmember field for {key}')

XEProject = entry.fields.get('XEProject')
url = entry.fields.get('XEurl')
Expand Down

0 comments on commit 7e5a308

Please sign in to comment.