[core] PopupException should be displayed and not redirected as a 500
@@ -58,5 +58,8 @@ class PopupException(Exception):
if not request.ajax:
data['request'] = request
response = desktop.lib.django_util.render("popup_error.mako", request, data)
+ if self.error_code == 500 and data['is_embeddable']: # Hue 4
+ response.status_code = 200
+ else:
response.status_code = self.error_code
return response
