arb-xmu-course 2.5.0 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/arb-xmu-course +4 -3
- data/lib/arb/xmu/course/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: eb37abf1bb056dd4421e68b12bfa0909266bd290
|
4
|
+
data.tar.gz: e06362f40936397d553276c6ebec1e99227da654
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddc82e3358b30155e15bee11ab31b78a7d43fe94bce3da9666e936087228a037b36f58d0cc82efe86d436f18c8dd0dbde4c47631b82126c388660516282fbb17
|
7
|
+
data.tar.gz: 4964bb636bd6ef35954254f6ac92344beaa189e9becf5a297510eb4be8eb52e3272738b65b4de71ddadfd11cbfcfd8a0dcc91572c43a6e95c6a136943c5c42a1
|
data/bin/arb-xmu-course
CHANGED
@@ -144,8 +144,8 @@ def create_attempt_thread(max_interval, client, course, xxlx, lcid, retry_count,
|
|
144
144
|
opened_thread_count=block.binding.local_variable_get(:opened_thread_count)
|
145
145
|
exit unless opened_thread_count > 0
|
146
146
|
block.binding.local_variable_set :opened_thread_count, opened_thread_count-1
|
147
|
-
rescue
|
148
|
-
exit_with_error(
|
147
|
+
rescue Exception=>e
|
148
|
+
exit_with_error("未知原因导致程序运行出错,请联系作者。(#{e})")
|
149
149
|
end
|
150
150
|
end
|
151
151
|
end
|
@@ -295,7 +295,8 @@ end
|
|
295
295
|
#error
|
296
296
|
exit unless opts
|
297
297
|
$arb_logfile = opts[:log]
|
298
|
-
$arb_retry_count = opts[:'retry-count'] or -1
|
298
|
+
$arb_retry_count = opts[:'retry-count'].to_i or -1
|
299
|
+
|
299
300
|
global_puts '参数解析完毕,连接服务器……'
|
300
301
|
|
301
302
|
|