style: changing assert in favor of exception

This commit is contained in:
Romain Dorgueil
2018-08-11 06:09:36 +02:00
parent 0cb503e2a9
commit ebba06822b

View File

@ -7,7 +7,8 @@
import sys
assert (sys.version_info >= (3, 5)), 'Python 3.5+ is required to use Bonobo.'
if sys.version_info < (3, 5):
raise RuntimeError('Python 3.5+ is required to use Bonobo.')
from bonobo._api import *
from bonobo._api import __all__