Skip to content

Commit

Permalink
rescue from race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Dec 18, 2012
1 parent d87c438 commit d7cbad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/package_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def image pkgname, type, default_url
response.headers['Content-Disposition'] = 'inline'
render :text => content, :content_type => 'image/png'
cache_page unless path
FileUtils.ln_sf( default_url, path ) if path
FileUtils.ln_sf( default_url, path ) if path rescue logger.error "Couldn't create default link for #{path}"
end

def set_categories
Expand Down

0 comments on commit d7cbad6

Please sign in to comment.