Fix: except SyntaxError for py3 viewer

Following https://www.python.org/dev/peps/pep-3110/
This commit is contained in:
carasuca
2018-12-30 02:59:49 +01:00
committed by GitHub
parent 83c30effb9
commit 69ea55d180

View File

@@ -468,7 +468,7 @@ class PyAssimp3DViewer:
try:
self.set_shaders_v130()
self.prepare_shaders()
except RuntimeError, message:
except RuntimeError as message:
sys.stderr.write("%s\n" % message)
sys.stdout.write("Could not compile shaders in version 1.30, trying version 1.20\n")