ruby: avoid crash on ArgumentError in onupdate

develop
jj 2012-11-25 17:29:03 +01:00
parent e9141f34f6
commit f091284a75
1 changed files with 1 additions and 1 deletions

@ -47,7 +47,7 @@ module DFHack
# t0 = Time.now
@callback.call
# dt = Time.now - t0 ; puts "rb cb #@description took #{'%.02f' % dt}s" if dt > 0.1
rescue
rescue Exception
df.onupdate_unregister self
puts_err "onupdate #@description unregistered: #$!", $!.backtrace
end