From 2c9431135d6cae6b1aa7120526757b596581a14e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 4 Jan 2016 17:32:45 +0000 Subject: bitbake: cooker: Drop useless parsing exception The SyntaxError exception simply shows the recipe that failed to parse which is pretty useless without the actual exception. We could make it print more info, however we can just use one of the more generic handlers instead and remove this one. For a python indentation error, this leads to a much more readable error message. (Bitbake rev: 9241eb10847634e34c5ff8767ed8c114f66ff6cf) Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'bitbake/lib/bb/cooker.py') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 4df88818fc..5ceb198c05 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -2125,11 +2125,6 @@ class CookerParser(object): logger.error('ExpansionError during parsing %s: %s', value.recipe, str(exc)) self.shutdown(clean=False) return False - except SyntaxError as exc: - self.error += 1 - logger.error('Unable to parse %s', exc.recipe) - self.shutdown(clean=False) - return False except Exception as exc: self.error += 1 etype, value, tb = sys.exc_info() -- cgit v1.2.3-54-g00ecf