Skip to content

Commit 5d9ef6a

Browse files
committed
Added in exception for empty target
1 parent 8d0ec79 commit 5d9ef6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Interlace/lib/core/input.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ def process_commands(arguments):
180180
# difference operation
181181
targets -= exclusions
182182

183+
if len(targets) == 0:
184+
raise Exception("No target provided, or empty target list")
185+
183186
if arguments.command:
184187
commands.add(arguments.command.rstrip('\n'))
185188
else:

0 commit comments

Comments
 (0)