[fix] status check fix

This commit is contained in:
Saurabh 2016-12-30 17:05:40 +05:30
parent 3cae3a5190
commit 6bbed0297b

View File

@ -77,7 +77,7 @@ def send_via_gateway(arg):
for d in arg.get('receiver_list'):
args[ss.receiver_parameter] = d
status = send_request(ss.sms_gateway_url, args)
if status > 200 and status < 300:
if status >= 200 and status < 300:
success_list.append(d)
if len(success_list) > 0: