webhooks: Fix spelling of milliseconds.

This commit is contained in:
Tim Abbott
2021-03-05 12:22:50 -08:00
parent ff09d8af03
commit 28d437672f
2 changed files with 3 additions and 3 deletions

View File

@@ -182,4 +182,4 @@ def unix_milliseconds_to_timestamp(milliseconds: Any, webhook: str) -> datetime:
seconds = milliseconds / 1000 seconds = milliseconds / 1000
return timestamp_to_datetime(seconds) return timestamp_to_datetime(seconds)
except (ValueError, TypeError): except (ValueError, TypeError):
raise JsonableError(_("The {} webhook expects time in milleseconds.").format(webhook)) raise JsonableError(_("The {} webhook expects time in milliseconds.").format(webhook))

View File

@@ -110,7 +110,7 @@ No details.
"", "",
content_type="application/json", 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: def test_time_too_large(self) -> None:
with self.assertRaises(AssertionError) as e: with self.assertRaises(AssertionError) as e:
@@ -120,4 +120,4 @@ No details.
"", "",
content_type="application/json", 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])