style fix

This commit is contained in:
Markus Unterwaditzer 2015-02-02 19:51:45 +01:00
parent 7d727ecef3
commit 32c84cc86e

View file

@ -302,7 +302,7 @@ def checkfile(path, create=False):
if os.path.exists(path):
raise IOError('{} is not a file.'.format(path))
if create:
with open(path, 'wb') as f:
with open(path, 'wb'):
pass
else:
raise exceptions.CollectionNotFound('File {} does not exist.'