bubble up source errors in pixiv strategy in test env

This commit is contained in:
Albert Yi
2018-05-16 17:19:20 -07:00
parent 6acaf999a1
commit be54741dba

View File

@@ -143,6 +143,7 @@ module Sources
nil
end
rescue Sources::Error
raise if Rails.env.test?
nil
end