mirror of
https://github.com/python/cpython.git
synced 2025-09-11 11:17:16 +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):
|
||||
os.chdir(dirname)
|
||||
m = __import__(shortname+'scan')
|
||||
try:
|
||||
m = __import__(shortname+'scan')
|
||||
except:
|
||||
return 0
|
||||
try:
|
||||
m.main()
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue