diff --git a/biblio/__init__.py b/biblio/__init__.py index f04e72b..6ee6144 100644 --- a/biblio/__init__.py +++ b/biblio/__init__.py @@ -8,9 +8,9 @@ publication = single_publication(7175390) - if publication.cite.chicago_author_date: + try: print publication.cite.chicago_author_date - else: + except AttributeError: print 'No chicago author date is provided' .. _`Ghent University Academic Bibliography`: https://biblio.ugent.be/ diff --git a/biblio/biblio.py b/biblio/biblio.py index a2c1788..1755649 100644 --- a/biblio/biblio.py +++ b/biblio/biblio.py @@ -15,7 +15,6 @@ - Leading underscores on all fields are removed (e.g. ``_id`` becomes ``id``) - All hyphens are replaces with underscores (e.g. ``chicago-author-date`` becomes ``chicago_author_date``) - .. _`Ghent University Academic Bibliography`: https://biblio.ugent.be/ .. _UGent: http://www.ugent.be .. _API: https://biblio.ugent.be/doc/api