raise ImportError when Python version is wrong instead of AssertionError
This commit is contained in:
parent
fed8461e4b
commit
a78f0a6b29
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ import sys
|
|||
# Make sure that this is at least Python 2.3
|
||||
required_version = (2, 3)
|
||||
if sys.version_info < required_version:
|
||||
raise AssertionError, "Requires at least Python 2.3"
|
||||
raise ImportError, "Requires at least Python 2.3"
|
||||
|
||||
from tftpy.TftpShared import *
|
||||
from tftpy.TftpPacketTypes import *
|
||||
|
|
Reference in a new issue