##// END OF EJS Templates
Merge pull request #1430 from matthew-brett/old-tornado-check...
Fernando Perez -
r6133:cea9772f merge
parent child Browse files
Show More
@@ -1,12 +1,15 b''
1 """The IPython HTML Notebook"""
1 """The IPython HTML Notebook"""
2
2
3 # check for tornado 2.1.0
3 # check for tornado 2.1.0
4 msg = "The IPython Notebook requires tornado >= 2.1.0"
4 msg = "The IPython Notebook requires tornado >= 2.1.0"
5 try:
5 try:
6 import tornado
6 import tornado
7 except ImportError:
7 except ImportError:
8 raise ImportError(msg)
8 raise ImportError(msg)
9 else:
9 try:
10 if tornado.version_info < (2,1,0):
10 version_info = tornado.version_info
11 except AttributeError:
12 raise ImportError(msg + ", but you have < 1.1.0")
13 if version_info < (2,1,0):
11 raise ImportError(msg+", but you have %s"%tornado.version)
14 raise ImportError(msg + ", but you have %s" % tornado.version)
12 del msg
15 del msg
General Comments 0
You need to be logged in to leave comments. Login now