aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/command/util.py')
-rw-r--r--libbe/command/util.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbe/command/util.py b/libbe/command/util.py
index 4395592..f6734d5 100644
--- a/libbe/command/util.py
+++ b/libbe/command/util.py
@@ -94,8 +94,9 @@ def select_values(string, possible_values, name="unkown"):
whitelisted_values = string.split(',')
for value in whitelisted_values:
if value not in possible_values:
- raise UserError('Invalid %s %s\n %s'
- % (name, value, possible_values))
+ raise libbe.command.UserError(
+ 'Invalid %s %s\n %s'
+ % (name, value, possible_values))
possible_values = whitelisted_values
return possible_values