Merge pull request #35 from codingo/fix-empty-file-exception

Added in exception for empty target
This commit is contained in:
Michael Skelton
2019-04-12 10:24:31 +10:00
committed by GitHub

View File

@@ -180,6 +180,9 @@ class InputHelper(object):
# 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: