From 2577400045709d7fd4566a7cdef2977190e52ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 11 Dec 2023 10:12:40 +0100 Subject: [PATCH] protect openinghours parsing against null value (#84537) --- combo_plugin_gnm/templatetags/gnm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combo_plugin_gnm/templatetags/gnm.py b/combo_plugin_gnm/templatetags/gnm.py index 0ae941a..ed8f783 100644 --- a/combo_plugin_gnm/templatetags/gnm.py +++ b/combo_plugin_gnm/templatetags/gnm.py @@ -208,7 +208,7 @@ def get_slots_from_mdr_format(data, base_datetime): def parse_opening_hours_data(mairie_data): """Parse every known openinghours data formats""" - for openinghours in mairie_data.get('openinghours', []): + for openinghours in mairie_data.get('openinghours') or []: # format is comma-separated days and/or intervals, or only one day try: groups = re.match(