Use correct exception message access
parent
00b6db86ab
commit
30ff0eb422
|
@ -466,8 +466,8 @@ class PyAssimp3DViewer:
|
||||||
try:
|
try:
|
||||||
self.set_shaders_v130()
|
self.set_shaders_v130()
|
||||||
self.prepare_shaders()
|
self.prepare_shaders()
|
||||||
except RuntimeError, message:
|
except RuntimeError as e:
|
||||||
sys.stderr.write("%s\n" % message)
|
sys.stderr.write("%s\n" % e.message)
|
||||||
sys.stdout.write("Could not compile shaders in version 1.30, trying version 1.20\n")
|
sys.stdout.write("Could not compile shaders in version 1.30, trying version 1.20\n")
|
||||||
|
|
||||||
if not shader_compilation_succeeded:
|
if not shader_compilation_succeeded:
|
||||||
|
|
Loading…
Reference in New Issue