Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

webhooks: Fix spelling of milliseconds.

Tim Abbott28d437672fb6
diff --git a/zerver/lib/webhooks/common.py b/zerver/lib/webhooks/common.py
index c98e5e783d4..53f5aababef 100644
--- a/zerver/lib/webhooks/common.py
+++ b/zerver/lib/webhooks/common.py
@@ -182,4 +182,4 @@ def unix_milliseconds_to_timestamp(milliseconds: Any, webhook: str) -> datetime:
seconds = milliseconds / 1000
return timestamp_to_datetime(seconds)
except (ValueError, TypeError):
- raise JsonableError(_("The {} webhook expects time in milleseconds.").format(webhook))
+ raise JsonableError(_("The {} webhook expects time in milliseconds.").format(webhook))
diff --git a/zerver/webhooks/newrelic/tests.py b/zerver/webhooks/newrelic/tests.py
index 1f959f5e4f0..262499c2aa1 100644
--- a/zerver/webhooks/newrelic/tests.py
+++ b/zerver/webhooks/newrelic/tests.py
@@ -110,7 +110,7 @@ No details.
"",
content_type="application/json",
)
- self.assertIn("The newrelic webhook expects time in milleseconds.", e.exception.args[0])
+ self.assertIn("The newrelic webhook expects time in milliseconds.", e.exception.args[0])
def test_time_too_large(self) -> None:
with self.assertRaises(AssertionError) as e:
@@ -120,4 +120,4 @@ No details.
"",
content_type="application/json",
)
- self.assertIn("The newrelic webhook expects time in milleseconds.", e.exception.args[0])
+ self.assertIn("The newrelic webhook expects time in milliseconds.", e.exception.args[0])