Ignore unkown device type (#3266)

This commit is contained in:
Uku Taht 2023-08-15 14:37:27 +03:00 committed by GitHub
parent 9e9555f719
commit a6bf951852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}