Skip to content

Commit

Permalink
skip function if no bibids passed
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Apr 19, 2024
1 parent 01d1682 commit 40ca5d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions esupy/bibtex.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def generate_sources(bib_path: Path,
displayed in the openLCA dashboard.
:return: list of olca_schema.Source
"""
if bibids == {}:
log.debug("No bibids passed. No sources generated.")
return []
try:
import bibtexparser
from bibtexparser.bparser import BibTexParser
Expand Down

0 comments on commit 40ca5d2

Please sign in to comment.