From a6bf9518525dab86e3475428af85bc02587cf587 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Tue, 15 Aug 2023 14:37:27 +0300 Subject: [PATCH] Ignore unkown device type (#3266) --- lib/plausible/ingestion/event.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/plausible/ingestion/event.ex b/lib/plausible/ingestion/event.ex index a2c5747eb..c6d698f90 100644 --- a/lib/plausible/ingestion/event.ex +++ b/lib/plausible/ingestion/event.ex @@ -372,6 +372,9 @@ defmodule Plausible.Ingestion.Event do %Device{type: t} when t in @desktop_types -> "Desktop" + %Device{type: "unknown"} -> + nil + %Device{type: type} -> Sentry.capture_message("Could not determine device type from UAInspector", extra: %{type: type}