flickrchive 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/flickrchive.gemspec +1 -1
- data/lib/flickrchive/execute.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0be7633dd7f0a9e2dce1fada350e49cbabfccd01
|
4
|
+
data.tar.gz: a67db4be1b1945e5c8cfc9f6aa545ee07917ce2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eafb024a97aae9f38f0c5b51f5b7faccefdf477d0d0bba78ee4a02621c003ee85d0abf4a9d57016394ab0ce456d91ccf3b74fe6da84379b03a1f9117d1e28baf
|
7
|
+
data.tar.gz: 0c8767f789823b4ff3b126f96fdf1947c26a6a1a204e8bf5a4893ec662623c4db369b29d652e0087891e709bb405c5e7daf79f2f6d986937c5b546d3229a04c4
|
data/flickrchive.gemspec
CHANGED
data/lib/flickrchive/execute.rb
CHANGED
@@ -24,6 +24,11 @@ module Flickrchive
|
|
24
24
|
rescue EOFError
|
25
25
|
Flickrchive.logger.info("Caught network EOFError. Retrying upload")
|
26
26
|
retry
|
27
|
+
rescue JSON::ParserError
|
28
|
+
Flickrchive.logger.error("Received a non-parseable response. Flickr api service is likely unavailable.")
|
29
|
+
Flickrchive.logger.error("Sleeping 60 seconds and retrying..")
|
30
|
+
sleep 60
|
31
|
+
retry
|
27
32
|
end
|
28
33
|
Flickrchive.logger.info("Uploaded file: #{photo[:filename]}")
|
29
34
|
photo[:flickr_id] = id
|