summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-10-25 14:43:24 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2018-11-19 21:07:37 +0200
commitd118e3ad4c21946dc3fc204f6649c424eedabb90 (patch)
tree08055fb8c55e4230ee474cee4193505faeeb2e8d
parentd3f2172de81b8ebd5732e874f737d27f6f76757a (diff)
downloadmeson-d118e3ad4c21946dc3fc204f6649c424eedabb90.tar.gz
lgtm: Instantiating an exception, but not raising it
Instantiating an exception, but not raising it, has no effect This alert was introduced in 92487ea 10 months ago
-rw-r--r--mesonbuild/dependencies/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py
index b1d79bbcb..03903910e 100644
--- a/mesonbuild/dependencies/base.py
+++ b/mesonbuild/dependencies/base.py
@@ -174,7 +174,7 @@ class Dependency:
parent (if any) and the requested values of any dependencies will be
added as well.
"""
- RuntimeError('Unreachable code in partial_dependency called')
+ raise RuntimeError('Unreachable code in partial_dependency called')
class InternalDependency(Dependency):