From 155b339d84a34d913e7e6542570e88f53bb669e0 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 4 Nov 2010 12:20:03 +0000 Subject: [PATCH] Don't return yet! We need to check the other one. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36034 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_2_0.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index 8b81520b0d..4af886bfa6 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -864,13 +864,13 @@ def revert_custom_processors(document): i = find_token(document.header, '\\bibtex_command', 0) if i == -1: document.warning("Malformed LyX document: Missing \\bibtex_command.") - return - del document.header[i] + else: + del document.header[i] i = find_token(document.header, '\\index_command', 0) if i == -1: document.warning("Malformed LyX document: Missing \\index_command.") - return - del document.header[i] + else: + del document.header[i] def convert_nomencl_width(document): -- 2.39.5