From 72b6990fb27ccbab173c32302990eef3c8c509c1 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 5 Jun 2016 19:58:26 -0700 Subject: [PATCH] Do usefulness check even if we can't find the file --- minheader.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/minheader.py b/minheader.py index de50d77..b12c3c7 100755 --- a/minheader.py +++ b/minheader.py @@ -56,7 +56,11 @@ class MinHeader(object): self._Log('\t%s: ' % inc_path) - sub_includes = self._FindSubIncludes(inc_path) + try: + sub_includes = self._FindSubIncludes(inc_path) + except IncludeNotFound: + self._Log('(MISSING) ') + sub_includes = [] # Is the include useful at all? if self._TestReplacement(path, lines, inc_i, []):