Fix core.py raising string instead of correct RuntimeError

pull/2392/head
Charlie Gettys 2019-03-27 12:25:37 -04:00
parent 7721e430b4
commit eb81619e56
1 changed files with 547 additions and 547 deletions

View File

@ -6,7 +6,7 @@ This is the main-module of PyAssimp.
import sys
if sys.version_info < (2,6):
raise 'pyassimp: need python 2.6 or newer'
raise RuntimeError('pyassimp: need python 2.6 or newer')
# xrange was renamed range in Python 3 and the original range from Python 2 was removed.
# To keep compatibility with both Python 2 and 3, xrange is set to range for version 3.0 and up.