mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Avoid crash when no defaults
This commit is contained in:
parent
670ebc0d9f
commit
3adb33dc8c
1 changed files with 2 additions and 1 deletions
|
|
@ -464,7 +464,8 @@ def format_storage_config(cls, header=True):
|
||||||
from ..utils import get_class_init_specs
|
from ..utils import get_class_init_specs
|
||||||
handled = set()
|
handled = set()
|
||||||
for spec in get_class_init_specs(cls, stop_at=Storage):
|
for spec in get_class_init_specs(cls, stop_at=Storage):
|
||||||
defaults = dict(zip(spec.args[-len(spec.defaults):], spec.defaults))
|
defaults = spec.defaults or ()
|
||||||
|
defaults = dict(zip(spec.args[-len(defaults):], defaults))
|
||||||
for key in spec.args[1:]:
|
for key in spec.args[1:]:
|
||||||
if key in handled:
|
if key in handled:
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue