Skip to content

Commit

Permalink
Fixes #9, print 'exit' and exit cleanly on KeyboardInterrupt or EOFError
Browse files Browse the repository at this point in the history
  • Loading branch information
italorossi committed Jun 12, 2014
1 parent f2b1bfd commit bfc7af1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ishell/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def loop(self):
break
else:
self.walk_and_run(input_)
except KeyboardInterrupt:
except (KeyboardInterrupt, EOFError):
print "exit"
break

except Exception:
Expand Down

0 comments on commit bfc7af1

Please sign in to comment.