SFTtech / openage

Free (as in freedom) open source clone of the Age of Empires II engine 🚀
http://openage.dev
Other
12.51k stars 1.11k forks source link

complete if-else branch to fix pylint error #1604

Closed AyiStar closed 7 months ago

AyiStar commented 7 months ago

make checkall gets pylint error as follows: openage/convert/entity_object/conversion/aoc/genie_unit.py:483:31: E0601: Using variable 'head_unit_connection' before assignment (used-before-assignment) It is caused by an incomplete if-else block, and can be fixed by adding an else-branch raising ValueError.