diff options
author | Michael Farrell <micolous+git@gmail.com> | 2012-08-07 14:19:15 +0930 |
---|---|---|
committer | Michael Farrell <micolous+git@gmail.com> | 2012-08-07 14:19:15 +0930 |
commit | a78f0a6b2968a86e5aadf48a5b3df3cf729c9622 (patch) | |
tree | 584719dfcaafe6847bea3adc76ef416a2469c1f9 | |
parent | fed8461e4bff9bb90abfd850676b4078a8dcf4cb (diff) | |
download | tftpy-a78f0a6b2968a86e5aadf48a5b3df3cf729c9622.tar.gz |
raise ImportError when Python version is wrong instead of AssertionError
-rw-r--r-- | tftpy/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tftpy/__init__.py b/tftpy/__init__.py index 9149761..fba9a9f 100644 --- a/tftpy/__init__.py +++ b/tftpy/__init__.py @@ -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 * |