mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-18 23:34:19 +01:00
Added in exception for empty target
This commit is contained in:
@@ -180,6 +180,9 @@ class InputHelper(object):
|
|||||||
# difference operation
|
# difference operation
|
||||||
targets -= exclusions
|
targets -= exclusions
|
||||||
|
|
||||||
|
if len(targets) == 0:
|
||||||
|
raise Exception("No target provided, or empty target list")
|
||||||
|
|
||||||
if arguments.command:
|
if arguments.command:
|
||||||
commands.add(arguments.command.rstrip('\n'))
|
commands.add(arguments.command.rstrip('\n'))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user