summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornetanelc305 <netanelc305@protonmail.com>2023-04-17 00:41:56 -0700
committerKevin Van Brunt <kmvanbrunt@gmail.com>2023-05-02 15:02:45 -0400
commitbdf17dc37d381a26f8372d545b76b1475539ff55 (patch)
tree27f8781161135f93b1acc9b6b23e573dab5851e6
parentfbabd9bff4c66766f74d50e3c05eaf58e5a6f6de (diff)
downloadcmd2-git-bdf17dc37d381a26f8372d545b76b1475539ff55.tar.gz
rl_utils: Verify `readline.__doc__ is not None`
-rw-r--r--cmd2/rl_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/rl_utils.py b/cmd2/rl_utils.py
index e9557f01..048302ef 100644
--- a/cmd2/rl_utils.py
+++ b/cmd2/rl_utils.py
@@ -141,7 +141,7 @@ if 'pyreadline3' in sys.modules:
elif 'gnureadline' in sys.modules or 'readline' in sys.modules:
# We don't support libedit. See top of this file for why.
- if 'libedit' not in readline.__doc__:
+ if readline.__doc__ is not None and 'libedit' not in readline.__doc__:
try:
# Load the readline lib so we can access members of it
import ctypes