mirror of
https://github.com/python/cpython.git
synced 2025-09-12 19:57:40 +00:00
The import of the scanner can also fail, cater for that.
This commit is contained in:
parent
28f14012d7
commit
1b8bd94f73
1 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,10 @@ import string
|
||||||
|
|
||||||
def bgenone(dirname, shortname):
|
def bgenone(dirname, shortname):
|
||||||
os.chdir(dirname)
|
os.chdir(dirname)
|
||||||
|
try:
|
||||||
m = __import__(shortname+'scan')
|
m = __import__(shortname+'scan')
|
||||||
|
except:
|
||||||
|
return 0
|
||||||
try:
|
try:
|
||||||
m.main()
|
m.main()
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue