lib/cardio/utils.rb in card-1.101.4 vs lib/cardio/utils.rb in card-1.101.5
- old
+ new
@@ -17,9 +17,10 @@
# It's here because it gets called as part of cache clearing, which sometimes gets
# called in a context where card mods are not loaded.
# Why does cache clearing need to do this??
def delete_tmp_files! id=nil
raise "no files directory" unless files_dir
+
delete_tmp_files id
rescue StandardError
Rails.logger.info "failed to remove tmp files"
end