The import of the scanner can also fail, cater for that.
This commit is contained in:
parent
28f14012d7
commit
1b8bd94f73
|
@ -6,7 +6,10 @@ import string
|
|||
|
||||
def bgenone(dirname, shortname):
|
||||
os.chdir(dirname)
|
||||
try:
|
||||
m = __import__(shortname+'scan')
|
||||
except:
|
||||
return 0
|
||||
try:
|
||||
m.main()
|
||||
except:
|
||||
|
|
Loading…
Reference in New Issue