add explicit Twisted version check

This commit is contained in:
Michel Oosterhof 2017-09-06 08:36:32 +00:00
parent d62018b307
commit d976e7a545
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ from zope.interface import implementer, provider
import os
import sys
from twisted._version import __version__
if __version__.major < 17:
raise ImportError( "Your version of Twisted is too old. Please ensure your virtual environment is set up correctly.")
from twisted.python import log, usage
from twisted.plugin import IPlugin
from twisted.application.service import IServiceMaker