Handling KeyboardInterrupt in Burrow shell

Bug #813438 reported by Varadharajan Mukundan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Burrow
Opinion
Undecided
Varadharajan Mukundan

Bug Description

When a keyboard interrupt(for example : CTRL + C) is given as an input to the burrow shell, an exception is thrown. It would be better if the exception is caught and handled.

varadharajan@unisys-67:/tmp/burrow-2011.2/burrow$ python shell.py
2011-07-20 16:28:14,142 - burrow.backend.http - DEBUG - Module created
burrow> Traceback (most recent call last):
  File "shell.py", line 243, in <module>
    Shell().run()
  File "shell.py", line 114, in run
    for command in self._get_command():
  File "shell.py", line 133, in _get_command
    command = raw_input(prompt)
KeyboardInterrupt

Changed in burrow:
assignee: nobody → Varadharajan Mukundan (srinathsmn)
status: New → Opinion
description: updated
Revision history for this message
Varadharajan Mukundan (srinathsmn) wrote :
description: updated
Revision history for this message
Varadharajan Mukundan (srinathsmn) wrote :

The above patch when integrated would make the shell exit when a keyboard interrupt is given, after printing out a message regarding it

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.