Skip to content

Commit 408a6b6

Browse files
authored
Merge pull request #35 from codingo/fix-empty-file-exception
Added in exception for empty target
2 parents 8d0ec79 + 5d9ef6a commit 408a6b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Interlace/lib/core/input.py

+3
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)