summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd2/rl_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/rl_utils.py b/cmd2/rl_utils.py
index a8d97fa5..a79f1519 100644
--- a/cmd2/rl_utils.py
+++ b/cmd2/rl_utils.py
@@ -129,10 +129,10 @@ elif 'gnureadline' in sys.modules or 'readline' in sys.modules:
import ctypes
readline_lib = ctypes.CDLL(readline.__file__)
- except AttributeError: # pragma: no cover
+ except (AttributeError, OSError): # pragma: no cover
_rl_warn_reason = (
"this application is running in a non-standard Python environment in\n"
- "which readline is not loaded dynamically from a shared library file."
+ "which GNU readline is not loaded dynamically from a shared library file."
)
else:
rl_type = RlType.GNU