Make a naked except: block catch specific exceptions (and not
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 25 Sep 2008 20:42:02 +0000 (20:42 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 25 Sep 2008 20:42:02 +0000 (20:42 +0000)
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

index 358527a5f171d06cc6d30c57af0fa6575aab6356..9fbbae5a262929fa9225d4b7b4efaaba79f1d691 100644 (file)
@@ -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: