From: stevenknight Date: Thu, 25 Sep 2008 20:42:02 +0000 (+0000) Subject: Make a naked except: block catch specific exceptions (and not X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=563f91694822f8774ebc009f0817705eb5a637a0;p=scons.git 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 --- 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: