Fix: except `SyntaxError` for py3 viewer

Following https://www.python.org/dev/peps/pep-3110/
pull/2288/head
carasuca 2018-12-30 02:59:49 +01:00 committed by GitHub
parent 83c30effb9
commit 69ea55d180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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")