From 4295d254f9001771c8849e261056f40807cf654d Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 20 Mar 2023 14:26:10 +0100 Subject: [PATCH] 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) --- fdroidserver/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 3905c45e..b633a4e7 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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):