Skip to content

Commit

Permalink
Another tweak to chmod...
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Tenner authored and Daniel Tenner committed Aug 3, 2010
1 parent 3539cbe commit fe1fe38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/num_fu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def save_to_storage
File.mv(@temp_path, full_filename)
File.chmod(attachment_options[:chmod] || 0666, File.expand_path(full_filename))
end
rescue ::Error
RAILS_DEFAULT_LOGGER.debug "Failed to chmod #{full_filename}"
rescue ::Exception => e
RAILS_DEFAULT_LOGGER.debug "Failed to chmod #{full_filename} - #{e.inspect}"
end

def delete
Expand Down

0 comments on commit fe1fe38

Please sign in to comment.