Skip to content

Commit

Permalink
fix: can't ignore exception in cache ops (#1571)
Browse files Browse the repository at this point in the history
  • Loading branch information
narasux authored Mar 6, 2024
1 parent 6aa0be8 commit 4c64aa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/bk-user/bkuser/apis/web/password/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ class ListUsersByResetPasswordTokenApi(generics.ListAPIView):
# 豁免认证 & 权限
authentication_classes: List[BaseAuthentication] = []
permission_classes: List[BasePermission] = []
pagination_class = None

@swagger_auto_schema(
tags=["password"],
Expand Down
3 changes: 1 addition & 2 deletions src/bk-user/bkuser/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,7 @@
"SOCKET_CONNECT_TIMEOUT": 5,
# 连接建立后的读写操作超时设置,单位秒
"SOCKET_TIMEOUT": 5,
# redis 只作为缓存使用, 触发异常不能影响正常逻辑,可能只是稍微慢点而已
"IGNORE_EXCEPTIONS": True,
"IGNORE_EXCEPTIONS": False,
# 默认使用 pickle 序列化数据,可选序列化方式有:pickle、json、msgpack
# "SERIALIZER": "django_redis.serializers.pickle.PickleSerializer"
# Redis 连接池配置
Expand Down

0 comments on commit 4c64aa8

Please sign in to comment.