summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2022-07-10 11:25:18 -0700
committerBrian Dolbec <dolsen@gentoo.org>2022-07-10 11:25:18 -0700
commit68159035c6479e313c33dd31d19d42d3178f1235 (patch)
tree48f86a6ec4a9b02ebb329145ff21443e36476329 /pym
parentd755f0f7c8e6b21f926837d46440768d58281b04 (diff)
downloadgentoolkit-68159035c6479e313c33dd31d19d42d3178f1235.tar.gz
equery check.py: Fix flake 8 qa for unused variable
flake8 did not correctly detect the way the variable is used. Add an assert to eliminate the false detection. Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
Diffstat (limited to 'pym')
-rw-r--r--pym/gentoolkit/equery/check.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/gentoolkit/equery/check.py b/pym/gentoolkit/equery/check.py
index 7e580b1..2ef881c 100644
--- a/pym/gentoolkit/equery/check.py
+++ b/pym/gentoolkit/equery/check.py
@@ -144,6 +144,7 @@ class VerifyContents:
obj_errs.append(err % locals())
return obj_errs
except Exception as ex:
+ assert ex # to silence unused variable ex
err = "Problem checking %(cfile)s: %(ex)s"
obj_errs.append(err % locals())
return obj_errs