aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_map
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-09-06 18:21:08 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2024-09-06 18:21:08 +0200
commit75038aca3da6dcccc07bce604c59776c0717706a (patch)
treea5a3d95da3a5ee75d8fc8495d85b4199a8266bed /scripts/gen_map
parent42abcd7743b8772881862925edde7eff1ea9f26e (diff)
downloadunterricht-75038aca3da6dcccc07bce604c59776c0717706a.tar.gz
unterricht-75038aca3da6dcccc07bce604c59776c0717706a.zip
improve object existence check
Diffstat (limited to 'scripts/gen_map')
-rwxr-xr-xscripts/gen_map/gen_map.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_map/gen_map.py b/scripts/gen_map/gen_map.py
index e8387a02..d9eaab9a 100755
--- a/scripts/gen_map/gen_map.py
+++ b/scripts/gen_map/gen_map.py
@@ -161,7 +161,7 @@ def parse_section_html(section, summary_class: str) -> t.Tuple[str, str, int]:
summary = summary.replace('\xa0', ' ')
match = SUMMARY_RE.match(summary)
- if not match is None:
+ if match is not None:
summary = match.group(1)
duration = int(match.group(2))
else: