Verified Commit b9010e98 authored by Jonathan L. Verner's avatar Jonathan L. Verner
Browse files

fix: fix exception handling if no bibdata present in aux file.

parent 54fc3e55
CHANGES
=======
* fix: fix exception handling if no bibdata present in aux file
0.2.3
-----
* Prepare for releasing
* ops: migrate packaging to pbr
* doc: Add release manual
* fix: Do not fail if no bibdata present
......
......@@ -95,7 +95,7 @@ def make_bib(basename, bib_dbase, force_overwrite=False):
try:
aux_data = auxfile.parse_file(basename + '.aux')
except auxfile.AuxDataError as ex:
if 'no \\bibdata' in ex.message:
if 'no \\bibdata' in str(ex):
logger.warn("No \\bibdata command found.")
return False
raise ex
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment