summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-18 17:53:15 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-18 17:53:15 -0500
commitb3e6ec603b41b5dee4c6229d4a68586b44bc0433 (patch)
tree00db4a2942dd707f43f1a62cee70eefdd6b3911f /cmd2.py
parentf547ca26deeab436e875f4f3fdefe6c733445293 (diff)
downloadcmd2-git-b3e6ec603b41b5dee4c6229d4a68586b44bc0433.tar.gz
Changed a ModuleNotFoundErorr to ImportError for Python 2/3 compatibility
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 0b8f47a7..c8d3c7b9 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -76,7 +76,7 @@ except NameError:
ipython_available = True
try:
from IPython import embed
-except ModuleNotFoundError:
+except ImportError:
ipython_available = False
__version__ = '0.7.0'