summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-12-14 23:01:34 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-12-14 23:01:34 (GMT)
commit1b8bd94f73d5da6e79b4a44c110a5ad6f9207086 (patch)
tree782831a09288811c5d788c2d8e16298b9bda5d48
parent28f14012d7df8671f9526e0828a256ce3680441e (diff)
downloadcpython-1b8bd94f73d5da6e79b4a44c110a5ad6f9207086.zip
cpython-1b8bd94f73d5da6e79b4a44c110a5ad6f9207086.tar.gz
cpython-1b8bd94f73d5da6e79b4a44c110a5ad6f9207086.tar.bz2
The import of the scanner can also fail, cater for that.
-rw-r--r--Mac/scripts/bgenall.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mac/scripts/bgenall.py b/Mac/scripts/bgenall.py
index bb5ddcc..81200fc 100644
--- a/Mac/scripts/bgenall.py
+++ b/Mac/scripts/bgenall.py
@@ -6,7 +6,10 @@ import string
def bgenone(dirname, shortname):
os.chdir(dirname)
- m = __import__(shortname+'scan')
+ try:
+ m = __import__(shortname+'scan')
+ except:
+ return 0
try:
m.main()
except: