mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			617 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			617 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from __future__ import absolute_import
 | 
						|
 | 
						|
from django.utils.translation import ugettext as _
 | 
						|
from django.http import HttpResponse, HttpRequest
 | 
						|
 | 
						|
from zilencer.models import Deployment
 | 
						|
 | 
						|
from zerver.decorator import has_request_variables, REQ
 | 
						|
from zerver.lib.error_notify import do_report_error
 | 
						|
from zerver.lib.validator import check_dict
 | 
						|
 | 
						|
from typing import Any, Dict, Text
 | 
						|
 | 
						|
@has_request_variables
 | 
						|
def report_error(request, deployment, type=REQ(), report=REQ(validator=check_dict([]))):
 | 
						|
    # type: (HttpRequest, Deployment, Text, Dict[str, Any]) -> HttpResponse
 | 
						|
    return do_report_error(deployment.name, type, report)
 |