bitex_bot 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bitex_bot/robot.rb +5 -2
- data/lib/bitex_bot/version.rb +1 -1
- 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: 98d52a8ce88ec8cfa25ad7781d8c989ac3311fd2
|
4
|
+
data.tar.gz: 3c15cc5fcb36a12a78585aa61e2ba2c86e73134d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59c028daeb22fae99f9c2a87bf473a78d5cacf09ba1b3c3d3973560ac6cc4bc08c533ad00dfbb1ae3eb182a1798605a1a799258e57fa9dccaa602ec82174145b
|
7
|
+
data.tar.gz: 37138d26080cd50d03700733002c9318be47a8c433cdc71e42d7c9c0a4adca0fab55d4e1a5d3b96a01d287f198a99872b7902c7daa63b892dd23455a3da006fa
|
data/lib/bitex_bot/robot.rb
CHANGED
@@ -86,9 +86,12 @@ module BitexBot
|
|
86
86
|
rescue CannotCreateFlow => e
|
87
87
|
self.notify("#{e.message}:\n\n#{e.backtrace.join("\n")}")
|
88
88
|
sleep (60 * 3) unless self.class.test_mode
|
89
|
+
rescue Curl::Err::TimeoutError => e
|
90
|
+
self.class.logger.error("#{e.class} - #{e.message}:\n\n#{e.backtrace.join("\n")}")
|
91
|
+
sleep 15 unless self.class.test_mode
|
89
92
|
rescue StandardError => e
|
90
|
-
self.notify("#{e.message}:\n\n#{e.backtrace.join("\n")}")
|
91
|
-
sleep
|
93
|
+
self.notify("#{e.class} - #{e.message}:\n\n#{e.backtrace.join("\n")}")
|
94
|
+
sleep 120 unless self.class.test_mode
|
92
95
|
end
|
93
96
|
|
94
97
|
def finalise_some_opening_flows
|
data/lib/bitex_bot/version.rb
CHANGED