@@ -85,9 +85,12 @@ def mp_upload_temperature(request): |
||
| 85 | 85 |
} |
| 86 | 86 |
|
| 87 | 87 |
for user in users: |
| 88 |
- res = send_template_message(user_id=user.openid, template_id=settings.TEMPLATE_ID_HOUSEHOLD_THERMOMETER_MEASURE, data=data, miniappid=miniappid, minipagepath='/pages/index/index', appid=appid, secret=secret, storage=RedisStorage(r)) |
|
| 88 |
+ try: |
|
| 89 |
+ res = send_template_message(user_id=user.openid, template_id=settings.TEMPLATE_ID_HOUSEHOLD_THERMOMETER_MEASURE, data=data, miniappid=miniappid, minipagepath='/pages/index/index', appid=appid, secret=secret, storage=RedisStorage(r)) |
|
| 90 |
+ logger.info(res) |
|
| 89 | 91 |
|
| 90 |
- logger.info(res) |
|
| 92 |
+ except Exception as e: |
|
| 93 |
+ logger.info(e) |
|
| 91 | 94 |
|
| 92 | 95 |
return response() |
| 93 | 96 |
|