ref: refs/heads/master
commit c6c8f152bfbf5b98ad1adf3dbc7357706a3911fe
Author: Duncan Mac-Vicar P
Date: Mon Jul 20 12:41:22 2009 +0200
no exceptions escape
---
.../app/controllers/patch_updates_controller.rb | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/plugins/patch_updates/app/controllers/patch_updates_controller.rb b/plugins/patch_updates/app/controllers/patch_updates_controller.rb
index ce4c0de..d6ce540 100644
--- a/plugins/patch_updates/app/controllers/patch_updates_controller.rb
+++ b/plugins/patch_updates/app/controllers/patch_updates_controller.rb
@@ -12,8 +12,14 @@ class PatchUpdatesController < ApplicationController
logger.debug "Available patches: #{@patch_updates.inspect}"
end
+ # this action is rendered as a partial, so it can't throw
def show_summary
- patch_updates = load_proxy 'org.opensuse.yast.system.patches', :all
+ patch_updates = nil
+ begin
+ patch_updates = load_proxy 'org.opensuse.yast.system.patches', :all
+ rescue
+ patch_updates = nil
+ end
unless patch_updates
flash.clear #no flash from load_proxy
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org