From e8a3d47f33c00eb8935cf0d7bcd87fc88b73e7aa Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Thu, 25 Sep 2008 20:42:02 +0000 Subject: Make a naked except: block catch specific exceptions (and not swallow a KeyboardInterrupt at the wrong time). --- 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 358527a..9fbbae5 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: -- cgit v0.12