Skip to content

Commit

Permalink
provide error message for better debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Jul 9, 2021
1 parent a10364f commit d50bbe9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions emmet-core/emmet/core/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ def from_SNLs(
set_strict_mode(False)
entries = parse_string(snl["about"]["references"], bib_format="bibtex")
refs.update(entries.entries)
except Exception:
warnings.warn(f"Failed parsing bibtex: {snl['about']['references']}")
except Exception as e:
warnings.warn(
f"Failed parsing bibtex: {snl['about']['references']} due to {e}"
)

bib_data = BibliographyData(entries=refs)

Expand Down

0 comments on commit d50bbe9

Please sign in to comment.