mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
squelch errors correctly
This commit is contained in:
parent
19b7e0cb49
commit
78039485d6
@ -752,7 +752,10 @@ class Freezer:
|
||||
|
||||
# Attempt to import the explicit modules into the modulefinder.
|
||||
for mdef in includes:
|
||||
self.__loadModule(mdef)
|
||||
try:
|
||||
self.__loadModule(mdef)
|
||||
except ImportError:
|
||||
print "Unknown module: %s" % (mdef.moduleName)
|
||||
|
||||
# Also attempt to import any implicit modules. If any of
|
||||
# these fail to import, we don't really care.
|
||||
@ -829,10 +832,7 @@ class Freezer:
|
||||
|
||||
else:
|
||||
# Otherwise, we can just import it normally.
|
||||
try:
|
||||
self.mf.import_hook(mdef.moduleName)
|
||||
except ImportError:
|
||||
print "Unknown module: %s" % (mdef.moduleName)
|
||||
self.mf.import_hook(mdef.moduleName)
|
||||
|
||||
def reset(self):
|
||||
""" After a previous call to done(), this resets the
|
||||
|
Loading…
x
Reference in New Issue
Block a user