Assert list of files to archive is non-empty.
This commit is contained in:
parent
e28f3ab115
commit
7fa1151269
|
@ -539,6 +539,7 @@ def test (archive, verbose=False):
|
|||
|
||||
def create (archive, *files, **kwargs):
|
||||
"""Create given archive with given files."""
|
||||
assert len(files) > 0
|
||||
return handle_archive(archive, 'create', *files, **kwargs)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue