From 25e2900937c79908f870bcb96d7df55fce9dcdf3 Mon Sep 17 00:00:00 2001 From: mangecoeur Date: Sat, 30 Jan 2016 13:02:17 +0000 Subject: [PATCH] Added version message, check for none.. --- citer.py | 5 +++++ messages/0.6.3.txt | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 messages/0.6.3.txt diff --git a/citer.py b/citer.py index 542d6ac..aeb6d24 100755 --- a/citer.py +++ b/citer.py @@ -83,6 +83,7 @@ def load_yamlbib_path(view): _YAMLBIB_PATH = _PAPERS[filename].bibpath() + class Paper: _filepath = None @@ -137,6 +138,10 @@ def bibfile_modifed(bib_path): def load_bibfile(bib_path): + if bib_path is None: + sublime.status_message("WARNING: No BibTex file configured for Citer") + return {} + bib_path = bib_path.strip() with open(bib_path, 'r', encoding="utf-8") as bibfile: bp = BibTexParser(bibfile.read(), customization=convert_to_unicode) diff --git a/messages/0.6.3.txt b/messages/0.6.3.txt new file mode 100644 index 0000000..23df3e8 --- /dev/null +++ b/messages/0.6.3.txt @@ -0,0 +1,4 @@ +Citer 0.6.3 +=========== + +Added YAML bibtex file support (@Anderas) \ No newline at end of file