From: Just van Rossum Date: Sat, 30 Jan 1999 18:27:12 +0000 (+0000) Subject: added some try/excepts so it also works when certain projects/folders are not availab... X-Git-Tag: v1.5.2b2~186 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2607a44690e701c66984b7b91fbcd225a3d271ff;p=thirdparty%2FPython%2Fcpython.git added some try/excepts so it also works when certain projects/folders are not available -- jvr --- diff --git a/Mac/scripts/fullbuild.py b/Mac/scripts/fullbuild.py index cf01d63cf61f..0587f6ccf99f 100644 --- a/Mac/scripts/fullbuild.py +++ b/Mac/scripts/fullbuild.py @@ -70,9 +70,17 @@ def buildmwproject(top, creator, projects): else: target = '' file = os.path.join(top, file) - fss = macfs.FSSpec(file) + try: + fss = macfs.FSSpec(file) + except ValueError: + print '** file not found:', file + continue print 'Building', file, target - mgr.open(fss) + try: + mgr.open(fss) + except aetools.Error, detail: + print '**', detail, file + continue if target: try: mgr.Set_Current_Target(target)