mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -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.
|
# Attempt to import the explicit modules into the modulefinder.
|
||||||
for mdef in includes:
|
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
|
# Also attempt to import any implicit modules. If any of
|
||||||
# these fail to import, we don't really care.
|
# these fail to import, we don't really care.
|
||||||
@ -829,10 +832,7 @@ class Freezer:
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
# Otherwise, we can just import it normally.
|
# Otherwise, we can just import it normally.
|
||||||
try:
|
self.mf.import_hook(mdef.moduleName)
|
||||||
self.mf.import_hook(mdef.moduleName)
|
|
||||||
except ImportError:
|
|
||||||
print "Unknown module: %s" % (mdef.moduleName)
|
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
""" After a previous call to done(), this resets the
|
""" After a previous call to done(), this resets the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user