We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 906a49d + d985203 commit 71eeb0bCopy full SHA for 71eeb0b
wxbot.py
@@ -1116,14 +1116,15 @@ def status_notify(self):
1116
return dic['BaseResponse']['Ret'] == 0
1117
1118
def test_sync_check(self):
1119
- for host in ['webpush.wx', 'webpush2.wx2','webpush.weixin', 'webpush2.weixin2']:
1120
- self.sync_host = host
1121
- try:
1122
- retcode = self.sync_check()[0]
1123
- except:
1124
- retcode == -1
1125
- if retcode == '0':
1126
- return True
+ for host1 in ['webpush.', 'webpush2.']:
+ for host2 in ['weixin','weixin2','wx','wx2']:
+ self.sync_host = host1+host2
+ try:
+ retcode = self.sync_check()[0]
+ except:
+ retcode == -1
+ if retcode == '0':
1127
+ return True
1128
return False
1129
1130
def sync_check(self):
0 commit comments