Permalink
Browse files

Catching ctrl-c interrupt in twitter callback to pass it on.

  • Loading branch information...
1 parent 43b23ee commit 99583db4fd30565b23c1498c0d2b4a58ed49e4a5 Jake McGinty committed Mar 5, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/twitter-sentiment/input/twitter.rb
@@ -32,6 +32,8 @@ def initialize options
# call the status-received callback
options[:status_callback].call(status)
+ rescue Interrupt
+ raise
rescue Exception => e
pp_exception e
end

0 comments on commit 99583db

Please sign in to comment.