lib/loquor/api_calls/show.rb in loquor-1.8.0 vs lib/loquor/api_calls/show.rb in loquor-1.9.0
- old
+ new
@@ -5,9 +5,10 @@
super(klass)
@id = id
end
def execute
+ return nil unless @id
begin
get_data
rescue RestClient::ResourceNotFound
if Loquor.config.retry_404s
sleep(1)