Fix the error of renewing the SSL script

This commit is contained in:
bt.cn
2021-11-23 11:10:26 +08:00
parent 23c519dc1b
commit 2af6e1d47b
+2 -2
View File
@@ -1505,13 +1505,13 @@ fullchain.pem Paste into certificate input box
if 'next_retry_time' in self._config['orders'][i]: if 'next_retry_time' in self._config['orders'][i]:
timeout = self._config['orders'][i]['next_retry_time'] - int(time.time()) timeout = self._config['orders'][i]['next_retry_time'] - int(time.time())
if timeout > 0: if timeout > 0:
write_log('|-The domain name skipped this time: {}, because the last renewal failed, you still need to wait {} hours and try again'.format(self._config['orders'][index]['domains'],int(timeout / 60 / 60))) write_log('|-The domain name skipped this time: {}, because the last renewal failed, you still need to wait {} hours and try again'.format(self._config['orders'][i]['domains'],int(timeout / 60 / 60)))
continue continue
# 是否到了最大重试次数 # 是否到了最大重试次数
if 'retry_count' in self._config['orders'][i]: if 'retry_count' in self._config['orders'][i]:
if self._config['orders'][i]['retry_count'] >= 3: if self._config['orders'][i]['retry_count'] >= 3:
write_log('|-Skip the domain name this time: {}, this certificate will not be renewed due to failure to renew 3 times in a row'.format(self._config['orders'][index]['domains'])) write_log('|-Skip the domain name this time: {}, this certificate will not be renewed due to failure to renew 3 times in a row'.format(self._config['orders'][i]['domains']))
continue continue
# 加入到续签订单 # 加入到续签订单