From 919b31ed3d5f1af7c72ab1c40c330a2dc988eb18 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Thu, 5 Nov 2015 11:43:23 +0200 Subject: [PATCH] remove rescues, better stracktraces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit which is funny, because i added the rescues because i wasn’t getting traces something changed, possibly opal --- lib/views/status_view.rb | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/lib/views/status_view.rb b/lib/views/status_view.rb index 9276bdd..b22dd73 100644 --- a/lib/views/status_view.rb +++ b/lib/views/status_view.rb @@ -43,22 +43,14 @@ class StatusView < ElementView end def run return unless @running - begin - proc = Proc.new do - self.update - self.run - end - proc.after( @running ) - rescue => e - puts e + proc = Proc.new do + self.update + self.run end + proc.after( @running ) end def update - begin - @interpreter.tick - rescue => e - puts e - end + @interpreter.tick @element.at_css(".clock").text = clock_text @element.at_css(".state").text = state_text @element.at_css(".flags").text = flags_text