Make exception message more clear

This commit is contained in:
Eric Torres 2019-02-20 02:27:49 -08:00
parent 4b285401ed
commit d96ed7cfde

View File

@ -40,7 +40,7 @@ def gen_cmdline(operation, db, opts, *pkgs):
:raises: ValueError if operation was invalid
"""
if not operation == 'add' or operation == 'remove':
raise ValueError('Invalid operation was raised')
raise ValueError('Invalid operation was requested')
cmd = [f"/usr/bin/repo-{operation}"]