Skip to content

Commit

Permalink
(db) recover from broken importer gracefully
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 7fcc735fa8a5543f4f86bf991e77c09b46980608eb9ae327a3d477467f549d75
  • Loading branch information
letoram committed Mar 7, 2014
1 parent bf61f1d commit a5ecd2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion resources/scripts/romman_base.rb
Expand Up @@ -618,11 +618,16 @@ def import_roms(options)
STDOUT.print("No importer found for #{group}, ignoring.\n")
next
end


begin
unless (imp.check_target(group, options[:targetpath]))
STDOUT.print("#{imp.to_s} Couldn't open target: #{group}, ignoring.\n")
next
end
rescue
STDOUT.print("#{imp.to_s} Importer failed, moving on.\n")
next
end

fn = "#{options[:rompath]}/#{group}/#{group}.descr"
if (File.exists?(fn))
Expand Down

0 comments on commit a5ecd2f

Please sign in to comment.