Skip to content

Commit

Permalink
Update documentation with try except
Browse files Browse the repository at this point in the history
which is pythonic
  • Loading branch information
Stef Bastiaansen committed Jun 10, 2016
1 parent 7fdea11 commit 73be1e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions biblio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
1 change: 0 additions & 1 deletion biblio/biblio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73be1e6

Please sign in to comment.