try to fix app_gw being null
This commit is contained in:
parent
61478db94e
commit
755045b226
|
@ -77,10 +77,10 @@ class ApplicationGatewayMiddleware:
|
||||||
try:
|
try:
|
||||||
# Check if ApplicationGateway is associated with application
|
# Check if ApplicationGateway is associated with application
|
||||||
getattr(app_gw, 'application')
|
getattr(app_gw, 'application')
|
||||||
return False, app_gw
|
if app_gw:
|
||||||
|
return False, app_gw
|
||||||
except Application.DoesNotExist:
|
except Application.DoesNotExist:
|
||||||
LOGGER.debug("ApplicationGateway not associated with Application")
|
LOGGER.debug("ApplicationGateway not associated with Application")
|
||||||
return True, None
|
|
||||||
return True, None
|
return True, None
|
||||||
|
|
||||||
def __call__(self, request):
|
def __call__(self, request):
|
||||||
|
|
Reference in New Issue