mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 05:29:26 -02:30
Converted except T,e expressions to except T as e
This commit is contained in:
@@ -127,7 +127,7 @@ class ModelAccessPermission(permissions.BasePermission):
|
||||
view.__class__.__name__, obj)
|
||||
try:
|
||||
response = self.check_permissions(request, view, obj)
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
logger.debug('has_permission raised %r', e, exc_info=True)
|
||||
raise
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user