forked from saurabh/orbit4-5
rescue import_controller import_status file not found
This commit is contained in:
parent
f4635502ef
commit
3dafcf37bc
|
@ -1218,7 +1218,11 @@ class Admin::ImportController < OrbitAdminController
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_settings_from_import_file
|
def get_settings_from_import_file
|
||||||
|
begin
|
||||||
YAML::load_file "#{Rails.root.to_s}/public/import_status.yml"
|
YAML::load_file "#{Rails.root.to_s}/public/import_status.yml"
|
||||||
|
rescue Exception => e
|
||||||
|
write_to_file
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_user
|
def get_user
|
||||||
|
|
Loading…
Reference in New Issue