Skip to content

Commit

Permalink
doc+bib: bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusTorrado committed Feb 25, 2021
1 parent 46e0b01 commit 30dc978
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cobaya/bib.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_desc_component(component, kind, info=None):
def get_bib_component(component, kind):
cls = get_class(component, kind, None_if_not_found=True)
if cls:
lines = (cls.get_bibtex().lstrip("\n").rstrip("\n")
lines = ((cls.get_bibtex() or "").lstrip("\n").rstrip("\n")
or "# [no bibliography information found]")
else:
lines = "# [Component '%s.%s' not known.]" % (kind, component)
Expand Down
4 changes: 2 additions & 2 deletions cobaya/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
from pprint import pformat

# Local
from cobaya.tools import warn_deprecation, get_available_internal_class_names
from cobaya.tools import warn_deprecation, get_available_internal_class_names, get_kind
from cobaya.conventions import subfolders, kinds
from cobaya.input import get_default_info, get_kind
from cobaya.input import get_default_info
from cobaya.log import LoggedError

_indent = 2 * " "
Expand Down

0 comments on commit 30dc978

Please sign in to comment.