pork_sandwich 0.4.18 → 0.4.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/pork_sandwich/puller.rb +5 -5
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.19
|
data/lib/pork_sandwich/puller.rb
CHANGED
@@ -11,22 +11,22 @@ module Pork
|
|
11
11
|
begin
|
12
12
|
pull_type.call(@user, @auth_object)
|
13
13
|
rescue Errno::ECONNRESET
|
14
|
-
|
14
|
+
$PORK_LOG.write("ERROR: Connection reset by peer, probably because you tried to access an unauthorized page. Moving on.") if $PORK_LOG
|
15
15
|
rescue Twitter::Unavailable
|
16
|
-
|
16
|
+
$PORK_LOG.write("ERROR: Twitter unavailable, trying in 60") if $PORK_LOG
|
17
17
|
sleep 60
|
18
18
|
retry
|
19
19
|
rescue Twitter::NotFound
|
20
|
-
|
20
|
+
$PORK_LOG.write("ERROR: Info target not found, trying to skip") if $PORK_LOG
|
21
21
|
# rescue Twitter::Unauthorized
|
22
22
|
# rescue Crack::ParseError
|
23
23
|
# raise Crack::ParseError
|
24
24
|
rescue Errno::ETIMEDOUT
|
25
|
-
|
25
|
+
$PORK_LOG.write("ERROR: Puller timed out, retrying in 10") if $PORK_LOG
|
26
26
|
sleep 10
|
27
27
|
retry
|
28
28
|
rescue Twitter::InformTwitter
|
29
|
-
|
29
|
+
$PORK_LOG.write("ERROR: Twitter internal error, retrying in 30") if $PORK_LOG
|
30
30
|
sleep 30
|
31
31
|
retry
|
32
32
|
end
|