Permalink
Browse files

Correctly ignore error conditions when preloading common libraries.

  • Loading branch information...
1 parent d4a585d commit 344e6e144c30e38fafab152902bb57b94043028d @FooBarWidget FooBarWidget committed Dec 9, 2008
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/passenger/spawn_manager.rb
@@ -71,7 +71,11 @@ def initialize
# Commonly used libraries.
['mysql', 'sqlite3'].each do |lib|
- require lib rescue nil
+ begin
+ require lib
+ rescue LoadError
+ # Do nothing; ignore if not present.
+ end
end
end
end

0 comments on commit 344e6e1

Please sign in to comment.