From 3e376e2d8b336d9cc2c24d4f349f219aa9043b76 Mon Sep 17 00:00:00 2001 From: "Fabien C. Y. Benureau" Date: Tue, 27 Feb 2018 13:18:55 +0900 Subject: [PATCH] remove obsolete exception catching --- pubs/endecoder.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/pubs/endecoder.py b/pubs/endecoder.py index bf4a77a..5f75397 100644 --- a/pubs/endecoder.py +++ b/pubs/endecoder.py @@ -113,15 +113,10 @@ class EnDecoder(object): def decode_bibdata(self, bibdata): """""" try: - try: - entries = bp.bparser.BibTexParser( - bibdata, common_strings=True, - customization=customizations, - homogenize_fields=True).get_entry_dict() - except TypeError: - entries = bp.bparser.BibTexParser( - bibdata, common_strings=True, - customization=customizations).get_entry_dict() + entries = bp.bparser.BibTexParser( + bibdata, common_strings=True, + customization=customizations, + homogenize_fields=True).get_entry_dict() # Remove id from bibtexparser attribute which is stored as citekey for e in entries: