From 1b8bd94f73d5da6e79b4a44c110a5ad6f9207086 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 14 Dec 2001 23:01:34 +0000 Subject: The import of the scanner can also fail, cater for that. --- Mac/scripts/bgenall.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- cgit v0.12