From 7abc01d28289627571fb4221364b15d6e8399027 Mon Sep 17 00:00:00 2001 From: AyiStar Date: Mon, 27 Nov 2023 23:18:37 +0800 Subject: [PATCH] complete if-else branch to fix pylint error --- copying.md | 1 + openage/convert/entity_object/conversion/aoc/genie_unit.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/copying.md b/copying.md index cd024a0a13..afad82f953 100644 --- a/copying.md +++ b/copying.md @@ -151,6 +151,7 @@ _the openage authors_ are: | Md Ashhar | ashhar | mdashhar01 à gmail dawt com | | Fábio Barkoski | fabiobarkoski | fabiobarkoskii à gmail dawt com | | Astitva Kamble | askastitva | astitvakamble5 à gmail dawt com | +| Haoyang Bi | AyiStar | ayistar à outlook dawt com | If you're a first-time committer, add yourself to the above list. This is not just for legal reasons, but also to keep an overview of all those nicknames. diff --git a/openage/convert/entity_object/conversion/aoc/genie_unit.py b/openage/convert/entity_object/conversion/aoc/genie_unit.py index e719c5f24f..52ded9b659 100644 --- a/openage/convert/entity_object/conversion/aoc/genie_unit.py +++ b/openage/convert/entity_object/conversion/aoc/genie_unit.py @@ -479,6 +479,8 @@ def is_unique(self) -> bool: else: # AoE1 return False + else: + raise ValueError(f"Unknown group type for {repr(self)}") enabling_research_id = head_unit_connection["enabling_research"].value