Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add exception catch to fix #20

  • Loading branch information...
commit 93dafd2093de83174d9b3a6a44a57ba4aaa2cc93 1 parent e839d58
@iloveitaly authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/__init__.py
View
6 src/__init__.py
@@ -474,7 +474,11 @@ def __init__(self, cmd_incs, do_color, do_echo, codebase_mode,
import rlcompleter
input_rc_file = os.path.join(os.environ["HOME"], ".inputrc")
if os.path.isfile(input_rc_file):
- readline.read_init_file(input_rc_file)
+ try:
+ readline.read_init_file(input_rc_file)
+ except Exception:
+ print >> sys.stderr, "\033[31mError parsing inputrc\033[0m"
+
readline.parse_and_bind("tab: complete")
# persistent readline history
Please sign in to comment.
Something went wrong with that request. Please try again.