aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pkgdev/scripts/pkgdev_mask.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pkgdev/scripts/pkgdev_mask.py b/src/pkgdev/scripts/pkgdev_mask.py
index 1d614a0..450c52c 100644
--- a/src/pkgdev/scripts/pkgdev_mask.py
+++ b/src/pkgdev/scripts/pkgdev_mask.py
@@ -101,7 +101,12 @@ def _mask_validate(parser, namespace):
atoms = set()
maintainers = set()
- namespace.bugs = list(map(int, dict.fromkeys(namespace.bugs)))
+ try:
+ namespace.bugs = list(map(int, dict.fromkeys(namespace.bugs)))
+ except ValueError:
+ parser.error("argument -b/--bug: invalid integer value")
+ if min(namespace.bugs, default=1) < 1:
+ parser.error("argument -b/--bug: must be >= 1")
if not namespace.rites and namespace.file_bug:
mask.error("bug filing requires last rites")