mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
try-except around particle load
This commit is contained in:
parent
36853fa4c3
commit
2a4eed754c
@ -204,10 +204,13 @@ class ParticleEffect(NodePath):
|
||||
|
||||
def loadConfig(self, filename):
|
||||
"""loadConfig(filename)"""
|
||||
if vfs:
|
||||
exec vfs.readFile(filename)
|
||||
else:
|
||||
execfile(filename.toOsSpecific())
|
||||
try:
|
||||
if vfs:
|
||||
exec vfs.readFile(filename)
|
||||
else:
|
||||
execfile(filename.toOsSpecific())
|
||||
except:
|
||||
self.notify.error('loadConfig: failed to load particle file: '+filename)
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user