From 6ec6725947bc2e84da5d998bc17c2b6ba96c99a0 Mon Sep 17 00:00:00 2001 From: KatKatKateryna Date: Fri, 27 Sep 2024 14:47:16 +0100 Subject: [PATCH] check nonetype --- pygeoapi/flask_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoapi/flask_app.py b/pygeoapi/flask_app.py index 1e66b99..e075c06 100644 --- a/pygeoapi/flask_app.py +++ b/pygeoapi/flask_app.py @@ -209,7 +209,7 @@ def landing_page(): if agent is not None and ("YaBrowser/" in agent or "yandex" in agent.lower()): raise ValueError("Your browser is not supported.") for br in browser_list: - if br in agent: + if agent is not None and br in agent: browser_agent = True break