mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
style fix
This commit is contained in:
parent
7d727ecef3
commit
32c84cc86e
1 changed files with 1 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ def checkfile(path, create=False):
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
raise IOError('{} is not a file.'.format(path))
|
raise IOError('{} is not a file.'.format(path))
|
||||||
if create:
|
if create:
|
||||||
with open(path, 'wb') as f:
|
with open(path, 'wb'):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
raise exceptions.CollectionNotFound('File {} does not exist.'
|
raise exceptions.CollectionNotFound('File {} does not exist.'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue