diff --git a/vendor/plugins/moodle2cc/Gemfile b/vendor/plugins/moodle2cc/Gemfile index 30eece15491..a5541769d52 100644 --- a/vendor/plugins/moodle2cc/Gemfile +++ b/vendor/plugins/moodle2cc/Gemfile @@ -1,3 +1,3 @@ -gem 'moodle2cc', '0.2.8' +gem 'moodle2cc', '0.2.9' gem 'happymapper', '0.4.1' gem 'thor', '0.18.1' diff --git a/vendor/plugins/moodle2cc/lib/moodle/converter.rb b/vendor/plugins/moodle2cc/lib/moodle/converter.rb index 08673f49a4a..fb6b6331010 100644 --- a/vendor/plugins/moodle2cc/lib/moodle/converter.rb +++ b/vendor/plugins/moodle2cc/lib/moodle/converter.rb @@ -21,7 +21,7 @@ module Moodle File.open(@course[:full_export_file_path], 'w') { |file| file << @course.to_json} @course ensure - FileUtils.rm migrator.imscc_path if migrator && File.exists?(migrator.imscc_path) + FileUtils.rm migrator.imscc_path if migrator && migrator.imscc_path && File.exists?(migrator.imscc_path) end def add_question_warnings