return only once

for consistency with the build() function.
This commit is contained in:
Nicolas Delaby 2014-03-12 16:26:08 +01:00
parent e39ad715d8
commit 2ac3ba8d2a

View File

@ -1433,7 +1433,6 @@ def build(path=None,
comment='Unexpected error while building an image')
else:
invalid(status, comment='`path` or `fileobj` must be given')
return status
return status