build: actually raise exception when ndk: entry is invalid

pylint said:
fdroidserver/common.py:4238:8: W0133: Exception statement has no effect (pointless-exception-statement)
This commit is contained in:
Hans-Christoph Steiner 2023-03-20 14:26:10 +01:00
parent bf5e65dd24
commit 4295d254f9

View file

@ -4239,8 +4239,8 @@ def auto_install_ndk(build):
for n in ndk:
_install_ndk(n)
else:
BuildException(_('Invalid ndk: entry in build: "{ndk}"')
.format(ndk=str(ndk)))
raise BuildException(_('Invalid ndk: entry in build: "{ndk}"')
.format(ndk=str(ndk)))
def _install_ndk(ndk):