diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-09-06 18:21:08 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-09-06 18:21:08 +0200 |
| commit | 75038aca3da6dcccc07bce604c59776c0717706a (patch) | |
| tree | a5a3d95da3a5ee75d8fc8495d85b4199a8266bed | |
| parent | 42abcd7743b8772881862925edde7eff1ea9f26e (diff) | |
| download | unterricht-75038aca3da6dcccc07bce604c59776c0717706a.tar.gz unterricht-75038aca3da6dcccc07bce604c59776c0717706a.zip | |
improve object existence check
| -rwxr-xr-x | scripts/gen_map/gen_map.py | 2 |
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: |
