From cd1ab5227c546da038e329125b1dbad80c1f99ac Mon Sep 17 00:00:00 2001 From: Jonathan Chambers Date: Fri, 25 Jul 2014 21:28:46 +0100 Subject: [PATCH] Fix for "wrong type of data" error --- citer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/citer.py b/citer.py index 687d0f5..1818933 100755 --- a/citer.py +++ b/citer.py @@ -77,7 +77,7 @@ def refresh_caches(): if LST_MOD_TIME is None or last_modified_time != LST_MOD_TIME: with open(BIBFILE_PATH, 'r', encoding="utf-8") as bibfile: - bp = BibTexParser(bibfile, customization=convert_to_unicode) + bp = BibTexParser(bibfile.read(), customization=convert_to_unicode) _DOCUMENTS = list(bp.get_entry_list()) _MENU = _make_citekey_menu_list(_DOCUMENTS) _CITEKEYS = [doc.get('id') for doc in _DOCUMENTS]