mirror of https://github.com/cowrie/cowrie.git
add explicit Twisted version check
This commit is contained in:
parent
d62018b307
commit
d976e7a545
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue