Commit 920a0534 authored by Aurélien Dunand's avatar Aurélien Dunand Committed by Sébastien Luttringer
Browse files

Catch SyntaxError in check_scripts



Rewrap this exception to ISError to avoid threat them as unexpected error.

Signed-off-by: default avatarSébastien Luttringer <sebastien.luttringer@smartjog.com>
parent 1fe258bb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -577,7 +577,10 @@ class SourceImage(Image):
            assert(isinstance(fn, unicode))
            assert(isinstance(fc, str))
            arrow(fn)
            try:
                compile(fc, fn.encode(locale.getpreferredencoding()), "exec")
            except SyntaxError as e:
                raise ISError(exception=e)
        arrowlevel(-1)

    def run_build(self):