Show More
@@ -6,7 +6,10 b' 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 |
|
10 | version_info = tornado.version_info | |
11 | raise ImportError(msg+", but you have %s"%tornado.version) |
|
11 | except AttributeError: | |
|
12 | raise ImportError(msg + ", but you have < 1.1.0") | |||
|
13 | if version_info < (2,1,0): | |||
|
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