lib/cryptum/web_sock/coinbase.rb in cryptum-0.0.386 vs lib/cryptum/web_sock/coinbase.rb in cryptum-0.0.387
- old
+ new
@@ -46,15 +46,12 @@
ping: 9
)
end
ws
- rescue Interrupt
- # Exit Gracefully if CTRL+C is Pressed During Session
- Cryptum::UI::Exit.gracefully
- rescue StandardError => e
- raise e
+ rescue Interrupt, StandardError => e
+ Cryptum::Log.append(level: :error, msg: e, which_self: self)
end
public_class_method def self.subscribe_message(opts = {})
option_choice = opts[:option_choice]
env = opts[:env]
@@ -82,11 +79,11 @@
\"key\": \"#{api_key}\",
\"passphrase\": \"#{api_passphrase}\",
\"timestamp\": \"#{api_timestamp}\",
\"signature\": \"#{api_signature}\"
}"
- rescue StandardError => e
- raise e
+ rescue Interrupt, StandardError => e
+ Cryptum::Log.append(level: :error, msg: e, which_self: self)
end
# Display Usage for this Module
public_class_method def self.help