From 4199b6787980e698cb10b0d4e21fdae7c442517f Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sat, 7 Jul 2012 17:30:31 -0500 Subject: [PATCH] Prevent an exception from breaking the sql cache --- lib/msf/core/db_manager.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/msf/core/db_manager.rb b/lib/msf/core/db_manager.rb index 170e93bb61..b1747b21a8 100644 --- a/lib/msf/core/db_manager.rb +++ b/lib/msf/core/db_manager.rb @@ -360,7 +360,11 @@ class DBManager next if skipped.include?( [ mt[0], mn ] ) obj = mt[1].create(mn) next if not obj - update_module_details(obj) + begin + update_module_details(obj) + rescue ::Exception + elog("Error updating module details for #{obj.fullname}: #{$!.class} #{$!}") + end end end