Return to Snippet

Revision: 68360
at January 12, 2015 13:54 by gterrill


Updated Code
begin
  ShopifyAPI::Shop.current
rescue ActiveResource::ResourceNotFound
  Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) appears to have gone bye bye"
  shop.destroy
rescue ActiveResource::UnauthorizedAccess => e
  Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) does not authorize us"
rescue ActiveResource::ForbiddenAccess => e
  Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) is a forbidden garden"
rescue ActiveResource::Redirection
  Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) bounced us"
end

Revision: 68359
at January 12, 2015 13:48 by gterrill


Initial Code
begin
        ShopifyAPI::Shop.current
      rescue ActiveResource::ResourceNotFound
        Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) appears to have gone bye bye"
        shop.destroy
      rescue ActiveResource::UnauthorizedAccess => e
        Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) does not authorize us"
      rescue ActiveResource::ForbiddenAccess => e
        Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) is a forbidden garden"
      rescue ActiveResource::Redirection
        Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) bounced us"
      end

Initial URL

                                

Initial Description
Figure out shopify shop status

Initial Title
Figure out shopify shop status

Initial Tags

                                

Initial Language
Ruby