mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-27 09:15:50 +00:00
Merge pull request #413 from pimutils/storage-init-no-defaults-bug
Fix bug in storage init errorhandler
This commit is contained in:
commit
313e36646b
1 changed files with 2 additions and 1 deletions
|
|
@ -114,7 +114,8 @@ def get_storage_init_args(cls, stop_at=object):
|
|||
all, required = set(), set()
|
||||
for spec in get_storage_init_specs(cls, stop_at=stop_at):
|
||||
all.update(spec.args[1:])
|
||||
required.update(spec.args[1:-len(spec.defaults or ())])
|
||||
last = -len(spec.defaults) if spec.defaults else len(spec.args)
|
||||
required.update(spec.args[1:last])
|
||||
|
||||
return all, required
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue