From 563f91694822f8774ebc009f0817705eb5a637a0 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Thu, 25 Sep 2008 20:42:02 +0000 Subject: [PATCH] Make a naked except: block catch specific exceptions (and not swallow a KeyboardInterrupt at the wrong time). git-svn-id: http://scons.tigris.org/svn/scons/trunk@3476 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Scanner/LaTeX.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/SCons/Scanner/LaTeX.py b/src/engine/SCons/Scanner/LaTeX.py index 358527a5..9fbbae5a 100644 --- a/src/engine/SCons/Scanner/LaTeX.py +++ b/src/engine/SCons/Scanner/LaTeX.py @@ -188,7 +188,7 @@ class LaTeX(SCons.Scanner.Base): def find_include(self, include, source_dir, path): try: sub_path = path[include[0]] - except: + except (IndexError, KeyError): sub_path = () try_names = self._latex_names(include) for n in try_names: -- 2.26.2