mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 06:46:24 +00:00
fix: 修复logger.error堆栈问题
This commit is contained in:
@@ -97,10 +97,10 @@ class RBACPermission(permissions.DjangoModelPermissions):
|
||||
else:
|
||||
model_cls = queryset.model
|
||||
except AssertionError as e:
|
||||
logger.error('Error get model cls: ', e)
|
||||
logger.error(f'Error get model cls: {e}')
|
||||
model_cls = None
|
||||
except AttributeError as e:
|
||||
logger.error('Error get model cls: ', e)
|
||||
logger.error(f'Error get model cls: {e}')
|
||||
model_cls = None
|
||||
except Exception as e:
|
||||
logger.error('Error get model class: {} of {}'.format(e, view))
|
||||
|
Reference in New Issue
Block a user