Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
errors: Remove references to "deployment", use "host".
Alex Vandiverd688e18de2ff
diff --git a/zerver/lib/error_notify.py b/zerver/lib/error_notify.pyindex f13bb2b1b3b..93a4619df96 100644--- a/zerver/lib/error_notify.py+++ b/zerver/lib/error_notify.py@@ -28,7 +28,7 @@ def user_info_str(report: Dict[str, Any]) -> str:else:user_info = "Anonymous user (not logged in)"- user_info += " on {deployment} deployment".format(**report)+ user_info += " on {host} deployment".format(**report)return user_infodef deployment_repr(report: Dict[str, Any]) -> str:@@ -177,8 +177,7 @@ Error generated by {user_info}mail_admins(format_email_subject(email_subject), message, fail_silently=True)-def do_report_error(deployment_name: str, type: str, report: Dict[str, Any]) -> HttpResponse:- report['deployment'] = deployment_name+def do_report_error(type: str, report: Dict[str, Any]) -> HttpResponse:if type == 'browser':notify_browser_error(report)elif type == 'server':diff --git a/zerver/worker/queue_processors.py b/zerver/worker/queue_processors.pyindex 902254df340..71b3ff48035 100644--- a/zerver/worker/queue_processors.py+++ b/zerver/worker/queue_processors.py@@ -632,7 +632,7 @@ class ErrorReporter(QueueProcessingWorker):def consume(self, event: Mapping[str, Any]) -> None:logging.info("Processing traceback with type %s for %s", event['type'], event.get('user_email'))if settings.ERROR_REPORTING:- do_report_error(event['report']['host'], event['type'], event['report'])+ do_report_error(event['type'], event['report'])@assign_queue('digest_emails')class DigestWorker(QueueProcessingWorker): # nocoverage