]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
added some try/excepts so it also works when certain projects/folders are not availab...
authorJust van Rossum <just@lettererror.com>
Sat, 30 Jan 1999 18:27:12 +0000 (18:27 +0000)
committerJust van Rossum <just@lettererror.com>
Sat, 30 Jan 1999 18:27:12 +0000 (18:27 +0000)
Mac/scripts/fullbuild.py

index cf01d63cf61f5fe85f806588fb2e3c2f6d413759..0587f6ccf99f60142b086d1823869e56e9a5bb95 100644 (file)
@@ -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)