Skip to content

Commit

Permalink
Merge pull request #35 from codingo/fix-empty-file-exception
Browse files Browse the repository at this point in the history
Added in exception for empty target
  • Loading branch information
codingo authored Apr 12, 2019
2 parents 8d0ec79 + 5d9ef6a commit 408a6b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Interlace/lib/core/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ def process_commands(arguments):
# difference operation
targets -= exclusions

if len(targets) == 0:
raise Exception("No target provided, or empty target list")

if arguments.command:
commands.add(arguments.command.rstrip('\n'))
else:
Expand Down

0 comments on commit 408a6b6

Please sign in to comment.