Skip to content

Commit

Permalink
Rescue any error unmarshalling yaml, fixes sidekiq#2244
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Mar 19, 2015
1 parent 1a1134c commit c7b9f08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Changes.md
@@ -1,6 +1,8 @@
HEAD
3.3.3
-----------

- Fix crash on exit when Redis is down [#2235]
- Fix duplicate logging on startup
- Undeprecate delay extension for ActionMailer 4.2+ . [#2186]

3.3.2
Expand Down
2 changes: 1 addition & 1 deletion lib/sidekiq/api.rb
Expand Up @@ -341,7 +341,7 @@ def [](name)
def safe_load(content, default)
begin
yield(*YAML.load(content))
rescue ::ArgumentError => ex
rescue => ex
# #1761 in dev mode, it's possible to have jobs enqueued which haven't been loaded into
# memory yet so the YAML can't be loaded.
Sidekiq.logger.warn "Unable to load YAML: #{ex.message}" unless Sidekiq.options[:environment] == 'development'
Expand Down

0 comments on commit c7b9f08

Please sign in to comment.