@@ -8,7 +8,10 @@ from utils.redis.rkeys import HY_QRCODE_URL_HASH |
||
8 | 8 |
def set_qrcode_url(scene): |
9 | 9 |
qrcode_url = get_course_field_limit_scene_qrcode_url(scene) |
10 | 10 |
if qrcode_url: |
11 |
- r.hset(HY_QRCODE_URL_HASH, scene, qrcode_url) |
|
11 |
+ try: |
|
12 |
+ r.hset(HY_QRCODE_URL_HASH, scene, qrcode_url) |
|
13 |
+ except Exception as e: |
|
14 |
+ pass |
|
12 | 15 |
return qrcode_url |
13 | 16 |
|
14 | 17 |
|